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
|
|
|
|
2017-10-03 17:30:06 +02:00
|
|
|
root {{ updates_root }};
|
2018-11-07 21:35:44 +01:00
|
|
|
include snippets/autoindex.conf;
|
|
|
|
include snippets/header-hsts.conf;
|
2017-02-10 22:51:55 +01:00
|
|
|
}
|
|
|
|
|
2017-10-03 17:30:06 +02:00
|
|
|
{% endif %}
|
2017-02-18 14:57:09 +01:00
|
|
|
# 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;
|
|
|
|
|
2017-10-03 17:30:06 +02:00
|
|
|
root {{ updates_root }};
|
2018-11-07 21:35:44 +01:00
|
|
|
include snippets/autoindex.conf;
|
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;
|
2017-04-07 20:54:58 +02:00
|
|
|
{% 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;
|
|
|
|
|
2017-10-03 17:30:06 +02:00
|
|
|
root {{ updates_root }};
|
2018-11-07 21:35:44 +01:00
|
|
|
include snippets/autoindex.conf;
|
2017-02-10 22:51:55 +01:00
|
|
|
}
|