forked from FF-RGB/ansible
34 lines
583 B
Django/Jinja
34 lines
583 B
Django/Jinja
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;
|
|
}
|
|
}
|
|
|
|
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;
|
|
}
|
|
}
|