mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-12-07 09:56:41 +00:00
18 lines
483 B
Django/Jinja
18 lines
483 B
Django/Jinja
server {
|
|
|
|
|
|
server_name {{ domain }};
|
|
{% include 'roles/sys-svc-letsencrypt/templates/ssl_header.j2' %}
|
|
|
|
{% if web_opt_rdr_domains_logout_enabled | bool %}
|
|
{#
|
|
Required for edge cases e.g. BlueSky where a canonical domain is deactivated,
|
|
and set as an alias but interpretated as an logout domain
|
|
#}
|
|
{% include 'roles/web-svc-logout/templates/logout-proxy.conf.j2' %}
|
|
{% endif %}
|
|
location / {
|
|
return 301 {{ WEB_PROTOCOL }}://{{ target }}$request_uri;
|
|
}
|
|
}
|