ansible/roles/hackmd/templates/config.json.j2

43 lines
1.2 KiB
Plaintext
Raw Normal View History

2018-04-09 21:28:36 +02:00
{
"production": {
2018-04-12 18:30:30 +02:00
"domain": "{{ hackmd_domain }}",
2018-04-09 21:28:36 +02:00
"_hsts": {
"enable": true,
"maxAgeSeconds": "31536000",
"includeSubdomains": true,
"preload": true
},
"csp": {
"enable": true,
"directives": {
2018-04-12 18:30:30 +02:00
"imgSrc": ["self", "unsafe-inline"]
2018-04-09 21:28:36 +02:00
},
"upgradeInsecureRequests": "auto",
"addDefaults": true,
"addDisqus": true,
"addGoogleAnalytics": true
},
"db": {
"username": "{{ hackmd_dbuser }}",
"password": "{{ hackmd_dbpass }}",
"database": "{{ hackmd_dbname }}",
"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-04-12 18:30:30 +02:00
"tlsca": "/etc/ldap/ssl/BKCA.crt"
2018-04-09 21:28:36 +02:00
}
2018-04-12 18:30:30 +02:00
},
"email": false
2018-04-09 21:28:36 +02:00
}
}