ansible/roles/web-gw/templates/vhost.j2

44 lines
898 B
Plaintext
Raw Normal View History

2017-07-03 21:18:45 +02:00
server {
listen 80;
listen [::]:80;
server_name _;
location /.well-known/acme-challenge {
default_type "text/plain";
alias /var/www/acme-challenge;
}
root /var/www/html;
location /firmware {
proxy_pass https://regensburg.freifunk.net/firmware;
}
2018-01-27 20:24:56 +01:00
# temp redirector server
location /move.php {
proxy_pass https://home.mephis.to/move.php;
}
location /firmware-ng/experimental {
proxy_pass https://home.mephis.to/ff/experimental/images;
}
2018-07-14 11:41:32 +02:00
location /firmware-ng/stable {
proxy_pass https://home.mephis.to/ff/stable/images;
}
2017-07-03 21:18:45 +02:00
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name {{ ansible_fqdn }};
ssl_certificate_key /etc/nginx/ssl/{{ ansible_fqdn }}.key;
ssl_certificate /etc/nginx/ssl/{{ ansible_fqdn }}.crt;
root /var/www/html;
location /firmware {
proxy_pass https://regensburg.freifunk.net/firmware;
}
2017-07-03 21:18:45 +02:00
}