Spaces:
Runtime error
Runtime error
neon_arch
commited on
Commit
•
e8a64f5
1
Parent(s):
e1e426c
✨ feat(engine): provide startpage search engine in the config (#314)
Browse files- websurfx/config.lua +13 -12
websurfx/config.lua
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
-- ### General ###
|
2 |
logging = true -- an option to enable or disable logs.
|
3 |
-
debug = false
|
4 |
-
threads = 10
|
5 |
|
6 |
-- ### Server ###
|
7 |
-
port = "8080"
|
8 |
binding_ip = "127.0.0.1" --ip address on the which server should be launched.
|
9 |
-
production_use = false
|
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
|
13 |
rate_limiter = {
|
14 |
-
|
15 |
-
|
16 |
}
|
17 |
|
18 |
-- ### Search ###
|
@@ -43,14 +43,15 @@ safe_search = 2
|
|
43 |
-- tomorrow-night
|
44 |
-- }}
|
45 |
colorscheme = "catppuccin-mocha" -- the colorscheme name which should be used for the website theme
|
46 |
-
theme = "simple"
|
47 |
|
48 |
-- ### Caching ###
|
49 |
redis_url = "redis://127.0.0.1:8082" -- redis connection url address on which the client should connect on.
|
50 |
-
cache_expiry_time = 600
|
51 |
-- ### Search Engines ###
|
52 |
upstream_search_engines = {
|
53 |
-
|
54 |
-
|
55 |
-
|
|
|
56 |
} -- select the upstream search engines from which the results should be fetched.
|
|
|
1 |
-- ### General ###
|
2 |
logging = true -- an option to enable or disable logs.
|
3 |
+
debug = false -- an option to enable or disable debug mode.
|
4 |
+
threads = 10 -- the amount of threads that the app will use to run (the value should be greater than 0).
|
5 |
|
6 |
-- ### Server ###
|
7 |
+
port = "8080" -- port on which server should be launched
|
8 |
binding_ip = "127.0.0.1" --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 = 20, -- 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 |
|
18 |
-- ### Search ###
|
|
|
43 |
-- tomorrow-night
|
44 |
-- }}
|
45 |
colorscheme = "catppuccin-mocha" -- the colorscheme name which should be used for the website theme
|
46 |
+
theme = "simple" -- the theme name which should be used for the website
|
47 |
|
48 |
-- ### Caching ###
|
49 |
redis_url = "redis://127.0.0.1:8082" -- redis connection url address on which the client should connect on.
|
50 |
+
cache_expiry_time = 600 -- This option takes the expiry time of the search results (value in seconds and the value should be greater than or equal to 60 seconds).
|
51 |
-- ### Search Engines ###
|
52 |
upstream_search_engines = {
|
53 |
+
DuckDuckGo = true,
|
54 |
+
Searx = false,
|
55 |
+
Brave = false,
|
56 |
+
Startpage = false,
|
57 |
} -- select the upstream search engines from which the results should be fetched.
|