Add selected environment options #7

Merged
decentral1se merged 2 commits from nicksellen/codimd:add/more-env-options into main 2021-07-30 18:45:57 +00:00
2 changed files with 31 additions and 1 deletions
+17
View File
@@ -18,3 +18,20 @@ SECRET_DB_PASSWORD_VERSION=v1
#CMD_OAUTH2_USER_PROFILE_URL="https://keycloak.example.com/auth/realms/realmname/protocol/openid-connect/userinfo"
#
#SECRET_OAUTH_KEY_VERSION=v1
# Options, see https://docs.hedgedoc.org/configuration/
# CMD_ALLOW_ANONYMOUS=true
decentral1se marked this conversation as resolved Outdated
Outdated
Review

Think these all need =true/false?

Think these all need `=true/false`?
Outdated
Review

The values can be varied depending on the option, e.g. CMD_DEFAULT_PERMISSION can be editable, freely, limited, locked, protected or private

... so I was imagining they would refer back to the source to check the values?

Or do you think the possible values (and defaults?) be copied in here too?

The values can be varied depending on the option, e.g. `CMD_DEFAULT_PERMISSION` can be `editable, freely, limited, locked, protected or private` ... so I was imagining they would refer back to the source to check the values? Or do you think the possible values (and defaults?) be copied in here too?
# CMD_ALLOW_ANONYMOUS_EDITS=false
# CMD_ALLOW_EMAIL_REGISTER=true
# CMD_ALLOW_FREEURL=false
# CMD_ALLOW_GRAVATAR=true
# CMD_ALLOW_ORIGIN=localhost
# CMD_COOKIE_POLICY=lax
# CMD_CSP_ADD_DISQUS=false
# CMD_CSP_ADD_GOOGLE_ANALYTICS=false
# CMD_CSP_ENABLE=true
# CMD_CSP_REPORTURI=undefined
# CMD_DEFAULT_PERMISSION=editable
# CMD_EMAIL=true
# CMD_SESSION_LIFE=1209600000
+14 -1
View File
@@ -8,7 +8,20 @@ services:
- CMD_DB_USER=codimd
- CMD_DB_HOST=db
- CMD_DB_PASSWORD_FILE=/run/secrets/db_password
- CMD_EMAIL # Email login enabled?
- CMD_ALLOW_ANONYMOUS
- CMD_ALLOW_ANONYMOUS_EDITS
- CMD_ALLOW_EMAIL_REGISTER
- CMD_ALLOW_FREEURL
- CMD_ALLOW_GRAVATAR
- CMD_ALLOW_ORIGIN
- CMD_COOKIE_POLICY
- CMD_CSP_ADD_DISQUS
- CMD_CSP_ADD_GOOGLE_ANALYTICS
- CMD_CSP_ENABLE
- CMD_CSP_REPORTURI
- CMD_DEFAULT_PERMISSION
- CMD_EMAIL
- CMD_SESSION_LIFE
depends_on:
- db
networks: