ansible-config/roles/website/updates/templates/site.j2

48 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-11-07 21:35:44 +01:00
{% if updates_tls_crt is defined %}
2017-02-10 22:51:55 +01:00
server {
2018-11-07 21:35:44 +01:00
server_name updates.hamburg.freifunk.net;
2017-02-10 22:51:55 +01:00
listen 443 ssl;
listen [::]:443 ssl;
2018-11-07 21:35:44 +01:00
ssl_certificate {{ updates_tls_crt }};
ssl_certificate_key {{ updates_tls_key }};
2017-02-10 22:51:55 +01:00
2018-11-07 21:35:44 +01:00
include snippets/autoindex.conf;
include snippets/header-hsts.conf;
2018-11-16 22:34:59 +01:00
include snippets/header-security.conf;
include snippets/no-unsafe-files.conf;
root {{ updates_root }};
2017-02-10 22:51:55 +01:00
}
2017-10-03 17:30:06 +02:00
{% endif %}
# Kein HTTPS Redirect wg. Paketinstallation auf Routern
2017-02-10 22:51:55 +01:00
server {
2018-11-07 21:35:44 +01:00
server_name updates.hamburg.freifunk.net;
2017-02-10 22:51:55 +01:00
listen 80;
listen [::]:80;
2018-11-07 21:35:44 +01:00
include snippets/autoindex.conf;
2018-11-16 22:34:59 +01:00
include snippets/header-security.conf;
include snippets/no-unsafe-files.conf;
root {{ updates_root }};
2017-10-03 17:30:06 +02:00
2018-11-07 21:35:44 +01:00
{% if updates_letsencrypt == 'local' %}
include snippets/location-acme.conf;
{% elif updates_letsencrypt == 'srv01' %}
include snippets/location-acme-srv01.conf;
{% endif %}
2017-02-10 22:51:55 +01:00
}
server {
2018-11-07 21:35:44 +01:00
server_name *.updates.services.ffhh;
2017-02-10 22:51:55 +01:00
listen 80;
listen [::]:80;
2018-11-07 21:35:44 +01:00
include snippets/autoindex.conf;
2018-11-16 22:34:59 +01:00
include snippets/header-security.conf;
include snippets/no-unsafe-files.conf;
root {{ updates_root }};
2017-02-10 22:51:55 +01:00
}