{ "production": { "loglevel": "{{cfg_hedgedoc.log_level}}", {% if cfg_hedgedoc.database.kind == 'sqlite' %} "db": { "dialect": "sqlite", "storage": "{{cfg_hedgedoc.database.data.sqlite.path}}" }, {% endif %} {% if cfg_hedgedoc.database.kind == 'postgresql' %} "db": { "dialect": "postgres", "host": "{{cfg_hedgedoc.database.data.postgresql.host}}", "port": {{cfg_hedgedoc.database.data.postgresql.port | to_json}}, "username": "{{cfg_hedgedoc.database.data.postgresql.username}}", "password": "{{cfg_hedgedoc.database.data.postgresql.password}}", "database": "{{cfg_hedgedoc.database.data.postgresql.schema}}" }, {% endif %} "sessionSecret": "{{cfg_hedgedoc.session_secret}}", "host": "localhost", "allowOrigin": [ "localhost" ], "domain": "{{cfg_hedgedoc.domain}}", "urlAddPort": false, "protocolUseSSL": true, {% if cfg_hedgedoc.authentication.kind == 'internal' %} "email": true, "allowEmailRegister": true, {% endif %} {% if cfg_hedgedoc.authentication.kind == 'authelia' %} "oauth2": { "providerName": "{{cfg_hedgedoc.authentication.data.authelia.provider_name}}", "clientID": "{{cfg_hedgedoc.authentication.data.authelia.client_id}}", "clientSecret": "{{cfg_hedgedoc.authentication.data.authelia.client_secret}}", "scope": "openid email profile", "userProfileUsernameAttr": "sub", "userProfileDisplayNameAttr": "name", "userProfileEmailAttr": "email", "userProfileURL": "{{cfg_hedgedoc.authentication.data.authelia.url_base}}/api/oidc/userinfo", "tokenURL": "{{cfg_hedgedoc.authentication.data.authelia.url_base}}/api/oidc/token", "authorizationURL": "{{cfg_hedgedoc.authentication.data.authelia.url_base}}/api/oidc/authorization" }, "email": false, "allowEmailRegister": false, {% endif %} "allowAnonymous": {{cfg_hedgedoc.guest_allow_create | to_json}}, "allowAnonymousEdits": {{cfg_hedgedoc.guest_allow_change | to_json}}, {% if cfg_hedgedoc.free_names_mode == 'never' %} "allowFreeURL": false, "requireFreeURLAuthentication": false, {% endif %} {% if cfg_hedgedoc.free_names_mode == 'authed' %} "allowFreeURL": true, "requireFreeURLAuthentication": true, {% endif %} {% if cfg_hedgedoc.free_names_mode == 'always' %} "allowFreeURL": true, "requireFreeURLAuthentication": false, {% endif %} "defaultPermission": "editable" } }