jsopn
5fbf35a8d3
refactor: centralize envs and their defaults in modules/config
( #464 )
...
* feat(config): centralized env variables and their default values
* fix: fip `corsWildcard` variable check in `corsConfig`
* fix(config): use already declared variables and default some strings to undefined
* fix: check processingPriority against NaN
2024-04-29 13:56:05 +02:00
wukko
e16ee6c1d3
env: readable environment variables in all files
...
apiPort -> API_PORT
apiURL -> API_URL
apiName -> API_NAME
cors -> ENABLE_CORS
cookiePath -> COOKIE_PATH
webPort -> WEB_PORT
webURL -> WEB_URL
showSponsors -> SHOW_SPONSORS
isBeta -> IS_BETA
2024-03-05 19:08:59 +06:00
wukko
31a2136c90
updated docs
2023-10-28 18:51:20 +06:00
dumbmoron
035f5a7839
cookie: allow updating cookie values directly
2023-10-14 22:49:12 +00:00
dumbmoron
40f8b3ee0c
update cookies that have no expiration
2023-08-20 22:33:33 +00:00
dumbmoron
ba7137ef62
send cookies as-is
2023-08-20 22:21:00 +00:00
dumbmoron
411938b460
do not attempt to update nonexistent cookie
2023-08-20 13:27:49 +00:00
wukko
c72d9b0ed1
change cookie path capitalization for consistency with other env stuff
2023-08-20 16:58:04 +06:00
wukko
fd0357e52d
move cookies to processing
...
slight clean up and better example
2023-08-20 16:51:39 +06:00