2018-11-07 22:36:43 +01:00
|
|
|
{% if meta_tls_crt is defined %}
|
|
|
|
server {
|
|
|
|
server_name meta.hamburg.freifunk.net;
|
|
|
|
listen 443 ssl;
|
|
|
|
listen [::]:443 ssl;
|
|
|
|
ssl_certificate {{ meta_tls_crt }};
|
|
|
|
ssl_certificate_key {{ meta_tls_key }};
|
|
|
|
|
|
|
|
include snippets/autoindex.conf;
|
|
|
|
include snippets/header-hsts.conf;
|
2018-11-16 22:34:59 +01:00
|
|
|
include snippets/header-security.conf;
|
2018-11-07 22:36:43 +01:00
|
|
|
include snippets/no-unsafe-files.conf;
|
|
|
|
|
2018-11-16 22:34:59 +01:00
|
|
|
root {{ meta_root }};
|
|
|
|
|
2018-11-07 22:36:43 +01:00
|
|
|
location ~ \.php$ {
|
|
|
|
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
|
|
|
fastcgi_param SCRIPT_FILENAME /var/www/meta$fastcgi_script_name;
|
|
|
|
include fastcgi_params;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
server {
|
|
|
|
server_name meta.hamburg.freifunk.net;
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
|
|
|
|
2018-11-16 22:34:59 +01:00
|
|
|
location / {
|
|
|
|
return 302 https://$server_name$request_uri;
|
|
|
|
}
|
2018-11-07 22:36:43 +01:00
|
|
|
|
|
|
|
include snippets/location-acme.conf;
|
|
|
|
}
|