feat(HedgeDoc): Add variable to configure upload folder, session and permission

This commit is contained in:
Simon 2021-07-27 10:53:48 +02:00
parent 87cbb69491
commit f9821adc68
3 changed files with 19 additions and 1 deletions

View File

@ -1,8 +1,10 @@
########
# DOCKER
#DOCKER_CONTEXT=
#DOCKER_HOST=
COMPOSE_FILE=../../hedgedoc/docker-compose.yml:../../hedgedoc/docker-compose.traefik.yml:../../postgres/docker-compose.yml
SERVICES_DIR=../..
COMPOSE_FILE=${SERVICES_DIR}/hedgedoc/docker-compose.yml:${SERVICES_DIR}/hedgedoc/docker-compose.traefik.yml:${SERVICES_DIR}/postgres/docker-compose.yml
COMPOSE_PROJECT_NAME=hedgedoc_exemple_fr
##########
@ -12,11 +14,17 @@ HEDGEDOC_DOMAIN=hedgedoc.exemple.fr
HEDGEDOC_VOLUME_NAME=hedgedoc_exemple_fr_hedgedoc
HEDGEDOC_CONTAINER_NAME=hedgedoc_exemple_fr_hedgedoc
#HEDGEDOC_IMAGE=
# https://docs.hedgedoc.org/configuration/
#NODE_ENV=
#CMD_PROTOCOL_USESSL=
#CMD_ALLOW_GRAVATAR=
#CMD_ALLOW_FREEURL=
#CMD_ALLOW_EMAIL_REGISTER=
CMD_SESSION_SECRET=/ADm6sOuQ/EOhUA+xcmkQOtk9QDhggjsFBKQCLKrC6U=
#CMD_DEFAULT_PERMISSION=
#PGID=
#PUID=
##########
# POSTGRES

View File

@ -14,11 +14,17 @@ HEDGEDOC_DOMAIN=md.cool.life
#HEDGEDOC_VOLUME_NAME=
#HEDGEDOC_CONTAINER_NAME=
#HEDGEDOC_IMAGE=
# https://docs.hedgedoc.org/configuration/
#NODE_ENV=
#CMD_PROTOCOL_USESSL=
#CMD_ALLOW_GRAVATAR=
#CMD_ALLOW_FREEURL=
#CMD_ALLOW_EMAIL_REGISTER=
#CMD_SESSION_SECRET=
#CMD_DEFAULT_PERMISSION=
#PGID=
#PUID=
##########
# POSTGRES

View File

@ -19,8 +19,12 @@ services:
# https://docs.hedgedoc.org/configuration/
CMD_DB_URL: postgres://${POSTGRES_USER:?err}:${POSTGRES_PASSWORD:?err}@${POSTGRES_CONTAINER_NAME}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:?err}
CMD_DOMAIN: ${HEDGEDOC_DOMAIN:?err}
CMD_SESSION_SECRET: ${CMD_SESSION_SECRET:?err}
NODE_ENV: ${NODE_ENV:-development} # `production` or `development`
CMD_PROTOCOL_USESSL: ${CMD_PROTOCOL_USESSL:-false}
CMD_ALLOW_GRAVATAR: ${CMD_ALLOW_GRAVATAR:-true}
CMD_ALLOW_FREEURL: ${CMD_ALLOW_FREEURL:-false}
CMD_ALLOW_EMAIL_REGISTER: ${CMD_ALLOW_EMAIL_REGISTER:-true}
CMD_DEFAULT_PERMISSION: ${CMD_DEFAULT_PERMISSION:-editable}
PGID: ${PGID:-1000}
PUID: ${PUID:-1000}