ansible/roles/web_stats/templates/vhost.j2
Mephisto 309105d948
Some checks failed
continuous-integration/drone/push Build is failing
Add NGINX Role tailored for stateserver usage
2020-11-24 18:22:03 +01:00

37 lines
634 B
Django/Jinja

server {
listen 80;
listen [::]:80;
proxy_set_header X-Forwarded-For $remote_addr;
server_name _;
location /.well-known/acme-challenge {
default_type "text/plain";
alias /var/www/acme-challenge;
}
root /var/www/html;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
proxy_set_header X-Forwarded-For $remote_addr;
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 / {
proxy_pass http://localhost:3000/
}
location /meshviewer {
alias /var/www/html/meshviewer;
}
}