2018-04-09 21:28:36 +02:00
|
|
|
{
|
|
|
|
"production": {
|
2021-05-13 16:19:43 +02:00
|
|
|
"domain": "{{ hedgedoc_domain }}",
|
2018-05-01 11:49:42 +02:00
|
|
|
"protocolUseSSL": true,
|
2018-09-16 11:49:53 +02:00
|
|
|
"allowAnonymous": false,
|
2018-10-15 18:46:34 +02:00
|
|
|
"allowAnonymousEdits": true,
|
2018-06-04 14:00:55 +02:00
|
|
|
"allowFreeURL": true,
|
2021-05-13 16:19:43 +02:00
|
|
|
"sessionSecret": "{{ hedgedoc_secret }}",
|
2018-06-04 14:00:55 +02:00
|
|
|
"hsts": {
|
2018-04-09 21:28:36 +02:00
|
|
|
"enable": true,
|
2019-09-18 13:08:08 +02:00
|
|
|
"maxAgeSeconds": 2592000,
|
2018-04-09 21:28:36 +02:00
|
|
|
"includeSubdomains": true,
|
|
|
|
"preload": true
|
|
|
|
},
|
|
|
|
"csp": {
|
2018-06-04 14:00:55 +02:00
|
|
|
"enable": true,
|
2018-04-09 21:28:36 +02:00
|
|
|
"directives": {
|
|
|
|
},
|
|
|
|
"upgradeInsecureRequests": "auto",
|
|
|
|
"addDefaults": true,
|
|
|
|
"addDisqus": true,
|
|
|
|
"addGoogleAnalytics": true
|
|
|
|
},
|
|
|
|
"db": {
|
2021-05-13 16:19:43 +02:00
|
|
|
"username": "{{ hedgedoc_dbuser }}",
|
|
|
|
"password": "{{ hedgedoc_dbpass }}",
|
|
|
|
"database": "{{ hedgedoc_dbname }}",
|
2018-04-09 21:28:36 +02:00
|
|
|
"host": "localhost",
|
|
|
|
"port": "5432",
|
|
|
|
"dialect": "postgres"
|
|
|
|
},
|
|
|
|
"ldap": {
|
|
|
|
"url": "{{ ldap_uri }}",
|
|
|
|
"bindDn": "{{ ldap_binddn }}",
|
|
|
|
"bindCredentials": "{{ ldap_bindpw }}",
|
|
|
|
"searchBase": "{{ ldap_base }}",
|
|
|
|
"searchFilter": "(uid={{ '{{' }}username{{ '}}' }})",
|
2018-04-12 18:30:30 +02:00
|
|
|
"searchAttributes": ["cn", "uid"],
|
2018-04-09 21:28:36 +02:00
|
|
|
"usernameField": "cn",
|
|
|
|
"useridField": "uid",
|
2018-09-20 18:30:42 +02:00
|
|
|
"tlsca": "/etc/ssl/certs/ca-certificates.crt"
|
2018-04-12 18:30:30 +02:00
|
|
|
},
|
|
|
|
"email": false
|
2018-04-09 21:28:36 +02:00
|
|
|
}
|
|
|
|
}
|