alamin655
commited on
Commit
•
f7f2362
1
Parent(s):
91c7f19
Update config.lua
Browse files- websurfx/config.lua +3 -3
websurfx/config.lua
CHANGED
@@ -5,13 +5,13 @@ threads = 10 -- the amount of threads that the app will use to run (the value sh
|
|
5 |
|
6 |
-- ### Server ###
|
7 |
port = "8080" -- port on which server should be launched
|
8 |
-
binding_ip = "
|
9 |
production_use = false -- whether to use production mode or not (in other words this option should be used if it is to be used to host it on the server to provide a service to a large number of users (more than one))
|
10 |
-- if production_use is set to true
|
11 |
-- There will be a random delay before sending the request to the search engines, this is to prevent DDoSing the upstream search engines from a large number of simultaneous requests.
|
12 |
request_timeout = 30 -- timeout for the search requests sent to the upstream search engines to be fetched (value in seconds).
|
13 |
rate_limiter = {
|
14 |
-
number_of_requests =
|
15 |
time_limit = 3, -- The time limit in which the quantity of requests that should be accepted.
|
16 |
}
|
17 |
|
@@ -24,7 +24,7 @@ rate_limiter = {
|
|
24 |
-- 3 - High
|
25 |
-- 4 - Aggressive
|
26 |
-- }}
|
27 |
-
safe_search =
|
28 |
|
29 |
-- ### Website ###
|
30 |
-- The different colorschemes provided are:
|
|
|
5 |
|
6 |
-- ### Server ###
|
7 |
port = "8080" -- port on which server should be launched
|
8 |
+
binding_ip = "0.0.0.0" --ip address on the which server should be launched.
|
9 |
production_use = false -- whether to use production mode or not (in other words this option should be used if it is to be used to host it on the server to provide a service to a large number of users (more than one))
|
10 |
-- if production_use is set to true
|
11 |
-- There will be a random delay before sending the request to the search engines, this is to prevent DDoSing the upstream search engines from a large number of simultaneous requests.
|
12 |
request_timeout = 30 -- timeout for the search requests sent to the upstream search engines to be fetched (value in seconds).
|
13 |
rate_limiter = {
|
14 |
+
number_of_requests = 50, -- The number of request that are allowed within a provided time limit.
|
15 |
time_limit = 3, -- The time limit in which the quantity of requests that should be accepted.
|
16 |
}
|
17 |
|
|
|
24 |
-- 3 - High
|
25 |
-- 4 - Aggressive
|
26 |
-- }}
|
27 |
+
safe_search = 0
|
28 |
|
29 |
-- ### Website ###
|
30 |
-- The different colorschemes provided are:
|