ansible-base/ansible/roles/hedgedoc/templates/config.json.j2
2023-12-16 15:14:56 +01:00

41 lines
1.1 KiB
Django/Jinja

{
"production": {
"loglevel": "error",
"db": {
"dialect": "sqlite",
"storage": "{{var_hedgedoc_database_path}}"
},
"sessionSecret": "{{var_hedgedoc_session_secret}}",
"host": "localhost",
"allowOrigin": [
"localhost"
],
"domain": "{{var_hedgedoc_domain}}",
"urlAddPort": false,
"protocolUseSSL": true,
{% if var_hedgedoc_oauth2_enable %}
"oauth2": {
"providerName": "{{var_hedgedoc_oauth2_provider_name}}",
"clientID": "{{var_hedgedoc_oauth2_client_id}}",
"clientSecret": "{{var_hedgedoc_oauth2_client_secret}}",
"scope": "openid email profile",
"userProfileUsernameAttr": "sub",
"userProfileDisplayNameAttr": "name",
"userProfileEmailAttr": "email",
"userProfileURL": "{{var_hedgedoc_oauth2_user_profile_url}}",
"tokenURL": "{{var_hedgedoc_oauth2_token_url}}",
"authorizationURL": "{{var_hedgedoc_oauth2_authorization_url}}"
},
"email": false,
"allowEmailRegister": false,
{% else %}
"email": true,
"allowEmailRegister": true,
{% endif %}
"allowAnonymous": false,
"allowAnonymousEdits": true,
"allowFreeURL": true,
"requireFreeURLAuthentication": true,
"defaultPermission": "editable"
}
}