ansible-base/ansible/roles/hedgedoc/templates/config.json.j2

42 lines
1.1 KiB
Text
Raw Normal View History

2023-12-10 20:44:52 +01:00
{
2023-12-16 15:13:01 +01:00
"production": {
"loglevel": "error",
2023-12-10 20:44:52 +01:00
"db": {
"dialect": "sqlite",
2023-12-16 15:13:01 +01:00
"storage": "{{var_hedgedoc_database_path}}"
2023-12-10 20:44:52 +01:00
},
2023-12-16 15:13:01 +01:00
"sessionSecret": "{{var_hedgedoc_session_secret}}",
"host": "localhost",
"allowOrigin": [
"localhost"
],
"domain": "{{var_hedgedoc_domain}}",
2023-12-10 20:44:52 +01:00
"urlAddPort": false,
2023-12-16 15:13:01 +01:00
"protocolUseSSL": true,
{% if var_hedgedoc_oauth2_enable %}
2023-12-10 20:44:52 +01:00
"oauth2": {
2023-12-16 15:13:01 +01:00
"providerName": "{{var_hedgedoc_oauth2_provider_name}}",
"clientID": "{{var_hedgedoc_oauth2_client_id}}",
"clientSecret": "{{var_hedgedoc_oauth2_client_secret}}",
2023-12-10 20:44:52 +01:00
"scope": "openid email profile",
"userProfileUsernameAttr": "sub",
"userProfileDisplayNameAttr": "name",
"userProfileEmailAttr": "email",
2023-12-16 15:13:01 +01:00
"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"
2023-12-10 20:44:52 +01:00
}
}