ansible/roles/web_svc/templates/uisp_vhost.j2

39 lines
714 B
Plaintext
Raw Normal View History

2024-10-06 17:45:18 +02:00
server {
listen 80;
listen [::]:80;
server_name {{ domains }};
location /.well-known/acme-challenge {
default_type "text/plain";
alias /var/www/acme-challenge;
}
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name {{ domains }};
ssl_certificate_key /etc/nginx/ssl/{{ domain }}.key;
ssl_certificate /etc/nginx/ssl/{{ domain }}.crt;
allow 2001:678:ddc::/48;
deny all;
location /nms {
proxy_pass https://10.90.224.101:443/nms;
proxy_set_header Host $host;
proxy_set_header Connection $http_connection;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Scheme $scheme;
}
}