rijkvanzanten
b087967c29
Prioritize env vars over stored vars in config file
...
Fixes #4191
2021-02-22 20:21:50 -05:00
Rijk van Zanten
f87cbb5824
Make max-payload-size configurable ( #4232 )
...
* Make max post size configurable
Closes #2925
* Document max payload size env var
2021-02-22 18:35:07 -05:00
Juan Carlos Blanco Delgado
7dee95e8aa
Adding syntax prefix parsing to specific types instead of only string var ( #4190 )
...
* Adding syntax prefix parsing to specific types instead of only strings env variables
* Update api/src/env.ts
* Update docs/reference/environment-variables.md
* Update docs/reference/environment-variables.md
* Ignore pre-parsed types
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
2021-02-22 11:36:24 -05:00
rijkvanzanten
eb9069c42c
Don't use string parsed values in .env
2021-02-19 15:09:14 -05:00
rijkvanzanten
ee96c99ec5
Don't fail on missing config file
...
Fixes #4106
2021-02-16 17:14:24 -05:00
YannickMol
7830453cfc
Align CORS environment variables between middleware and cos ( #4099 )
...
* Align CORS environment variables between middleware and cos
Fixes #4080
* Move CORS environment variables to env.ts
2021-02-16 14:56:09 -05:00
WoLfulus
813c731d27
Add config override support to env module ( #4029 )
...
* add override support for env module
* Override instead of merge w/ config file
* Default to reading .env instead of process.env
* Make env available in process.env
* Add docs for config-files
* Extend note
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-02-16 11:38:07 -05:00
rijkvanzanten
2f005063cd
Force type of certain env vars
...
Fixes #3705
2021-01-27 11:37:51 -05:00
rijkvanzanten
bfb2df432e
Replace ASSETS_CACHE_CONTROL with ASSETS_CACHE_TTL
2020-12-16 14:47:15 -05:00
rijkvanzanten
578b761ded
Add auto-purge option
...
And add cache-control header when auto purge is disabled
Fixes #3425
2020-12-16 14:26:38 -05:00
rijkvanzanten
ab0ade5375
Add way to set Cache-Control header for static assets
...
Fixes #3332
2020-12-16 13:53:50 -05:00
Igor Savin
7cddb458cb
Run prettier across app and api
2020-12-08 02:22:00 +02:00
rijkvanzanten
08c248f4a0
Don't treat leading zero values as numbers
...
Fixes #3216
2020-11-27 18:42:25 -05:00
JuanCarlosJr97
e6aa40d5c2
Undoing change made by mistake to CACHE_ENABLED instead of CORS_ENABLED
2020-11-04 08:33:58 +00:00
JuanCarlosJr97
606f81dd0b
Updating CORS_ENABLED to true as documentation describes
2020-11-04 08:32:18 +00:00
JuanCarlosJr97
2fc00a7842
Updating CORS_ENABLED to true by default
...
Updating CORS_ENABLED to true by default as the documentation describes
2020-11-04 02:01:13 +00:00
rijkvanzanten
91bfcb875f
Don't auto convert , to arrays in env
...
Fixes #782
2020-10-26 19:38:36 +01:00
rijkvanzanten
cac329c783
Convert env var values that contain , to arrays
2020-10-15 17:45:15 -04:00
rijkvanzanten
07ed30a4c9
Don't treat empty string as number
2020-10-12 15:55:25 -04:00
Rijk van Zanten
39d040682a
Update api/src/env.ts
2020-10-12 14:21:39 -04:00
mscbpi
e5b5f57b15
use isNaN instead of isNumeric
2020-10-12 18:52:55 +02:00
mscbpi
075f153404
Update env.ts
...
convert numeric values to number
2020-10-12 18:00:36 +02:00
rijkvanzanten
23458b5b9f
Last port change, promise
2020-10-02 16:26:40 -04:00
rijkvanzanten
1524c3e398
Change default port to 8805
2020-10-02 14:56:39 -04:00
rijkvanzanten
67a55ad228
Disable rate limiter by default
...
Fixes #323
2020-09-18 12:30:15 -04:00
rijkvanzanten
e8b842297c
Move telemetry flag to env
2020-09-17 11:55:45 -04:00
rijkvanzanten
7b2e890925
Add telemetry
2020-09-17 11:52:06 -04:00
rijkvanzanten
b19ffd960b
Add response middleware and cache
2020-09-08 18:28:23 -04:00
rijkvanzanten
266c07fde7
Temporarily disable caching
2020-09-08 17:22:34 -04:00
rijkvanzanten
9643b86dc5
Merge branch 'main' into feature-redis-cache
2020-09-08 16:57:15 -04:00
rijkvanzanten
9f3e12f8f2
Run prettier
2020-09-08 16:03:38 -04:00
rijkvanzanten
9231e7c732
Change default config for rate limiter
2020-09-08 15:51:22 -04:00
rijkvanzanten
862002bf9c
Add true/false parsing to env
2020-09-08 14:57:15 -04:00
rijkvanzanten
756c4a712d
Remove DB_SSL from required env flags list
2020-09-08 12:37:47 -04:00
kukulaka
9d6f80149c
changes for caching
...
Most changes should be here, just making sure flush cache is in for each post / delete
2020-08-31 17:16:45 +01:00
Tanya Byrne
db3c2f675f
Updating cache so memory used by default
2020-08-27 16:53:35 +01:00
Tanya Byrne
69b0333dc8
adding to env
2020-08-27 16:22:05 +01:00
rijkvanzanten
2252d5a35f
Use centralized env export with validator function
2020-08-04 13:10:49 -04:00