neon_arch commited on
Commit
0da1b9e
1 Parent(s): 1c5a317

✨ feat(config): provide a new config option `animation` (#424)

Browse files
Files changed (1) hide show
  1. websurfx/config.lua +22 -13
websurfx/config.lua CHANGED
@@ -1,18 +1,18 @@
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,15 +43,24 @@ 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" -- 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.
 
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
+ -- The different themes provided are:
47
+ -- {{
48
+ -- simple
49
+ -- }}
50
+ theme = "simple" -- the theme name which should be used for the website
51
+ -- The different animations provided are:
52
+ -- {{
53
+ -- simple-frost
54
+ -- }}
55
+ animation = "simple-frosted-glow" -- the animation name which should be used with the theme or `nil` if you don't want any animations.
56
 
57
  -- ### Caching ###
58
  redis_url = "redis://127.0.0.1:8082" -- redis connection url address on which the client should connect on.
59
+ 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).
60
  -- ### Search Engines ###
61
  upstream_search_engines = {
62
+ DuckDuckGo = true,
63
+ Searx = false,
64
+ Brave = false,
65
+ Startpage = false,
66
  } -- select the upstream search engines from which the results should be fetched.