forked from coop-cloud/hedgedoc
Corrections to get config updating and effective
This commit is contained in:
parent
6139cff626
commit
9e88945b9b
|
@ -26,6 +26,7 @@ services:
|
||||||
- CMD_DEFAULT_PERMISSION
|
- CMD_DEFAULT_PERMISSION
|
||||||
- CMD_EMAIL
|
- CMD_EMAIL
|
||||||
- CMD_SESSION_LIFE
|
- CMD_SESSION_LIFE
|
||||||
|
- DOCUMENT_MAX_LENGTH
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
networks:
|
networks:
|
||||||
|
@ -42,7 +43,7 @@ services:
|
||||||
mode: 0555
|
mode: 0555
|
||||||
- source: config_json
|
- source: config_json
|
||||||
target: /files/config.json
|
target: /files/config.json
|
||||||
mode: 0700
|
mode: 0555
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
{
|
{
|
||||||
{{ if (env "DOCUMENT_MAX_LENGTH") }}
|
{{ if (env "DOCUMENT_MAX_LENGTH") }}
|
||||||
|
"production": {
|
||||||
"documentMaxLength": {{ env "DOCUMENT_MAX_LENGTH" }}
|
"documentMaxLength": {{ env "DOCUMENT_MAX_LENGTH" }}
|
||||||
{{ end }}
|
}
|
||||||
|
{{ end }}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue