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

48 lines
905 B
Plaintext
Raw Normal View History

2017-02-10 22:51:55 +01:00
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name updates.hamburg.freifunk.net;
ssl_certificate {{ updates_ssl_certificate }};
ssl_certificate_key {{ updates_ssl_certificate_key }};
2017-02-10 22:51:55 +01:00
root /var/www/updates;
location / {
include /etc/nginx/include/headers_hsts.conf;
include /etc/nginx/include/listing.conf;
}
2017-02-10 22:51:55 +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;
root /var/www/updates;
2017-02-10 22:51:55 +01:00
location / {
include /etc/nginx/include/listing.conf;
}
{% if letsencrypt_srv02 %}
include /etc/nginx/include/letsencrypt_srv02.conf;
{% endif %}
2017-02-10 22:51:55 +01:00
}
server {
listen 80;
listen [::]:80;
server_name 1.updates.services.ffhh;
root /var/www/updates;
location / {
include /etc/nginx/include/listing.conf;
}
2017-02-10 22:51:55 +01:00
}