computer-playbook/roles/nginx/templates/homepage.nginx.conf.j2

27 lines
487 B
Plaintext
Raw Permalink Normal View History

2021-01-03 00:29:24 +01:00
#default
server
{
server_name {{domain}};
2023-09-02 13:13:28 +02:00
{% include 'roles/letsencrypt/templates/ssl_header.j2' %}
2021-01-03 00:29:24 +01:00
2024-01-03 12:07:19 +01:00
{% if nginx_matomo_tracking | bool %}
{% include 'roles/nginx-matomo-tracking/templates/matomo-tracking.conf.j2' %}
{% endif %}
charset utf-8;
2021-01-03 00:29:24 +01:00
location /
{
root {{nginx_homepage_root}};
2021-01-03 00:29:24 +01:00
index index.html index.htm;
}
location /.well-known/ {
alias {{nginx_well_known_root}};
allow all;
default_type "text/plain";
autoindex on;
}
2021-01-03 00:29:24 +01:00
}