Compare commits

...

2 Commits

Author SHA1 Message Date
Chris Thompson 6139cff626 Correct link 2022-12-15 14:39:19 -05:00
Chris Thompson 0c96d5a45f Add config file template for documentMaxLength setting 2022-12-15 14:39:14 -05:00
4 changed files with 15 additions and 1 deletions

View File

@ -41,3 +41,5 @@ COMPOSE_FILE="compose.yml"
# CMD_DEFAULT_PERMISSION=editable
# CMD_EMAIL=true
# CMD_SESSION_LIFE=1209600000
# Only present in config.json (no equivalent env var):
# DOCUMENT_MAX_LENGTH=100000

View File

@ -30,6 +30,6 @@
bin/manage_users
```
[hedegedoc]: https://github.com/hackmdio/hedegedoc
[hedegedoc]: https://github.com/hedgedoc/hedgedoc
[abra]: https://git.autonomic.zone/autonomic-cooperative/abra
[compose-traefik]: https://git.autonomic.zone/coop-cloud/traefik

View File

@ -40,6 +40,9 @@ services:
- source: entrypoint_conf
target: /docker-entrypoint.sh
mode: 0555
- source: config_json
target: /files/config.json
mode: 0700
deploy:
restart_policy:
condition: on-failure
@ -90,6 +93,10 @@ networks:
external: true
internal:
configs:
config_json:
name: ${STACK_NAME}_config_${ENTRYPOINT_CONF_VERSION}
file: config.json.tmpl
template_driver: golang
entrypoint_conf:
name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_CONF_VERSION}
file: entrypoint.sh.tmpl

5
config.json.tmpl Normal file
View File

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