ansible-role-inception/templates/settings.properties.j2

31 lines
1.2 KiB
Django/Jinja

warnings.unsupportedBrowser=false
{% for setting in inception_project_settings %}
{{ setting }}
{% endfor %}
{% if inception_project_server_auth_mode == "preauth" %}
auth.preauth.header.principal={{ inception_project_server_preauth_header }}
{% if inception_project_server_set_preauth_logout_url %}
auth.preauth.logoutUrl={{ inception_project_server_preauth_logout_url }}
{% endif %}
auth.preauth.newuser.roles={{ inception_project_server_preauth_default_roles }}
{% for user_role in inception_project_server_preauth_users_roles %}
auth.user.{{ user_role.username }}.roles={{ user_role.roles }}
{% endfor %}
{% endif %}
{% for additional_setting in inception_project_additional_settings %}
{{ setting }}
{% endfor %}
{% if inception_project_disable_crsf %}
wicket.core.csrf.enabled=false
wicket.core.csrf.no-origin-action=allow
wicket.core.csrf.conflicting-origin-action=allow
{% endif %}
{% if inception_project_server_behind_reverse_proxy %}
# server.tomcat.internal-proxies=127\.0\.[0-1]\.1
server.tomcat.remote-ip-header=x-forwarded-for
server.forward-headers-strategy=NATIVE
server.tomcat.accesslog.request-attributes-enabled=true
server.tomcat.protocol-header=x-forwarded-proto
server.tomcat.protocol-header-https-value=https
{% endif %}