feat(HedgeDoc): Add variable to configure upload folder, session and permission
This commit is contained in:
parent
87cbb69491
commit
f9821adc68
|
@ -1,8 +1,10 @@
|
||||||
########
|
########
|
||||||
# DOCKER
|
# DOCKER
|
||||||
|
|
||||||
|
#DOCKER_CONTEXT=
|
||||||
#DOCKER_HOST=
|
#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
|
COMPOSE_PROJECT_NAME=hedgedoc_exemple_fr
|
||||||
|
|
||||||
##########
|
##########
|
||||||
|
@ -12,11 +14,17 @@ HEDGEDOC_DOMAIN=hedgedoc.exemple.fr
|
||||||
HEDGEDOC_VOLUME_NAME=hedgedoc_exemple_fr_hedgedoc
|
HEDGEDOC_VOLUME_NAME=hedgedoc_exemple_fr_hedgedoc
|
||||||
HEDGEDOC_CONTAINER_NAME=hedgedoc_exemple_fr_hedgedoc
|
HEDGEDOC_CONTAINER_NAME=hedgedoc_exemple_fr_hedgedoc
|
||||||
#HEDGEDOC_IMAGE=
|
#HEDGEDOC_IMAGE=
|
||||||
|
|
||||||
|
# https://docs.hedgedoc.org/configuration/
|
||||||
#NODE_ENV=
|
#NODE_ENV=
|
||||||
#CMD_PROTOCOL_USESSL=
|
#CMD_PROTOCOL_USESSL=
|
||||||
#CMD_ALLOW_GRAVATAR=
|
#CMD_ALLOW_GRAVATAR=
|
||||||
#CMD_ALLOW_FREEURL=
|
#CMD_ALLOW_FREEURL=
|
||||||
#CMD_ALLOW_EMAIL_REGISTER=
|
#CMD_ALLOW_EMAIL_REGISTER=
|
||||||
|
CMD_SESSION_SECRET=/ADm6sOuQ/EOhUA+xcmkQOtk9QDhggjsFBKQCLKrC6U=
|
||||||
|
#CMD_DEFAULT_PERMISSION=
|
||||||
|
#PGID=
|
||||||
|
#PUID=
|
||||||
|
|
||||||
##########
|
##########
|
||||||
# POSTGRES
|
# POSTGRES
|
||||||
|
|
|
@ -14,11 +14,17 @@ HEDGEDOC_DOMAIN=md.cool.life
|
||||||
#HEDGEDOC_VOLUME_NAME=
|
#HEDGEDOC_VOLUME_NAME=
|
||||||
#HEDGEDOC_CONTAINER_NAME=
|
#HEDGEDOC_CONTAINER_NAME=
|
||||||
#HEDGEDOC_IMAGE=
|
#HEDGEDOC_IMAGE=
|
||||||
|
|
||||||
|
# https://docs.hedgedoc.org/configuration/
|
||||||
#NODE_ENV=
|
#NODE_ENV=
|
||||||
#CMD_PROTOCOL_USESSL=
|
#CMD_PROTOCOL_USESSL=
|
||||||
#CMD_ALLOW_GRAVATAR=
|
#CMD_ALLOW_GRAVATAR=
|
||||||
#CMD_ALLOW_FREEURL=
|
#CMD_ALLOW_FREEURL=
|
||||||
#CMD_ALLOW_EMAIL_REGISTER=
|
#CMD_ALLOW_EMAIL_REGISTER=
|
||||||
|
#CMD_SESSION_SECRET=
|
||||||
|
#CMD_DEFAULT_PERMISSION=
|
||||||
|
#PGID=
|
||||||
|
#PUID=
|
||||||
|
|
||||||
##########
|
##########
|
||||||
# POSTGRES
|
# POSTGRES
|
||||||
|
|
|
@ -19,8 +19,12 @@ services:
|
||||||
# https://docs.hedgedoc.org/configuration/
|
# 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_DB_URL: postgres://${POSTGRES_USER:?err}:${POSTGRES_PASSWORD:?err}@${POSTGRES_CONTAINER_NAME}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:?err}
|
||||||
CMD_DOMAIN: ${HEDGEDOC_DOMAIN:?err}
|
CMD_DOMAIN: ${HEDGEDOC_DOMAIN:?err}
|
||||||
|
CMD_SESSION_SECRET: ${CMD_SESSION_SECRET:?err}
|
||||||
NODE_ENV: ${NODE_ENV:-development} # `production` or `development`
|
NODE_ENV: ${NODE_ENV:-development} # `production` or `development`
|
||||||
CMD_PROTOCOL_USESSL: ${CMD_PROTOCOL_USESSL:-false}
|
CMD_PROTOCOL_USESSL: ${CMD_PROTOCOL_USESSL:-false}
|
||||||
CMD_ALLOW_GRAVATAR: ${CMD_ALLOW_GRAVATAR:-true}
|
CMD_ALLOW_GRAVATAR: ${CMD_ALLOW_GRAVATAR:-true}
|
||||||
CMD_ALLOW_FREEURL: ${CMD_ALLOW_FREEURL:-false}
|
CMD_ALLOW_FREEURL: ${CMD_ALLOW_FREEURL:-false}
|
||||||
CMD_ALLOW_EMAIL_REGISTER: ${CMD_ALLOW_EMAIL_REGISTER:-true}
|
CMD_ALLOW_EMAIL_REGISTER: ${CMD_ALLOW_EMAIL_REGISTER:-true}
|
||||||
|
CMD_DEFAULT_PERMISSION: ${CMD_DEFAULT_PERMISSION:-editable}
|
||||||
|
PGID: ${PGID:-1000}
|
||||||
|
PUID: ${PUID:-1000}
|
||||||
|
|
Loading…
Reference in New Issue