2017-10-03 17:30:06 +02:00
|
|
|
{% if updates_ssl_certificate is defined %}
|
2017-02-10 22:51:55 +01:00
|
|
|
server {
|
|
|
|
listen 443 ssl;
|
|
|
|
listen [::]:443 ssl;
|
|
|
|
|
|
|
|
server_name updates.hamburg.freifunk.net;
|
|
|
|
|
2017-02-18 14:32:05 +01:00
|
|
|
ssl_certificate {{ updates_ssl_certificate }};
|
|
|
|
ssl_certificate_key {{ updates_ssl_certificate_key }};
|
2017-02-10 22:51:55 +01:00
|
|
|
|
2017-10-03 17:30:06 +02:00
|
|
|
root {{ updates_root }};
|
2017-11-04 16:54:59 +01:00
|
|
|
include /etc/nginx/include/listing.conf;
|
2017-09-01 21:32:33 +02:00
|
|
|
|
2017-02-18 14:57:09 +01:00
|
|
|
location / {
|
|
|
|
include /etc/nginx/include/headers_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 {
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
|
|
|
|
|
|
|
server_name updates.hamburg.freifunk.net;
|
|
|
|
|
2017-10-03 17:30:06 +02:00
|
|
|
root {{ updates_root }};
|
2017-11-04 16:54:59 +01:00
|
|
|
include /etc/nginx/include/listing.conf;
|
2017-10-03 17:30:06 +02:00
|
|
|
{% if updates_letsencrypt_local %}
|
|
|
|
|
|
|
|
include /etc/nginx/include/letsencrypt.conf;
|
|
|
|
{% endif %}
|
|
|
|
{% if updates_letsencrypt_srv01 %}
|
|
|
|
|
|
|
|
include /etc/nginx/include/letsencrypt_srv01.conf;
|
|
|
|
{% endif %}
|
|
|
|
{% if updates_letsencrypt_srv02 %}
|
2017-04-07 20:54:58 +02:00
|
|
|
|
|
|
|
include /etc/nginx/include/letsencrypt_srv02.conf;
|
|
|
|
{% endif %}
|
2017-02-10 22:51:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
|
|
|
|
2017-10-03 17:30:06 +02:00
|
|
|
server_name *.updates.services.ffhh;
|
2017-02-10 22:51:55 +01:00
|
|
|
|
2017-10-03 17:30:06 +02:00
|
|
|
root {{ updates_root }};
|
2017-11-04 16:54:59 +01:00
|
|
|
include /etc/nginx/include/listing.conf;
|
2017-02-10 22:51:55 +01:00
|
|
|
}
|