Corrections to get config updating and effective

This commit is contained in:
Chris Thompson 2022-12-15 15:05:02 -05:00
parent 6139cff626
commit 9e88945b9b
2 changed files with 7 additions and 4 deletions

View File

@ -26,6 +26,7 @@ services:
- CMD_DEFAULT_PERMISSION
- CMD_EMAIL
- CMD_SESSION_LIFE
- DOCUMENT_MAX_LENGTH
depends_on:
- db
networks:
@ -42,7 +43,7 @@ services:
mode: 0555
- source: config_json
target: /files/config.json
mode: 0700
mode: 0555
deploy:
restart_policy:
condition: on-failure

View File

@ -1,5 +1,7 @@
{
{{ if (env "DOCUMENT_MAX_LENGTH") }}
"documentMaxLength": {{ env "DOCUMENT_MAX_LENGTH" }}
{{ end }}
{{ if (env "DOCUMENT_MAX_LENGTH") }}
"production": {
"documentMaxLength": {{ env "DOCUMENT_MAX_LENGTH" }}
}
{{ end }}
}