2020-11-24 18:22:03 +01:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
|
|
|
|
|
|
|
server_name _;
|
|
|
|
|
|
|
|
location /.well-known/acme-challenge {
|
|
|
|
default_type "text/plain";
|
|
|
|
alias /var/www/acme-challenge;
|
|
|
|
}
|
2020-11-24 20:29:53 +01:00
|
|
|
|
2020-11-24 18:22:03 +01:00
|
|
|
root /var/www/html;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
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 / {
|
2020-11-24 20:29:53 +01:00
|
|
|
proxy_pass http://localhost:3000/;
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
2022-02-15 18:12:36 +01:00
|
|
|
proxy_set_header Host $http_host;
|
2020-11-24 18:22:03 +01:00
|
|
|
}
|
2020-11-24 20:29:53 +01:00
|
|
|
|
2020-11-24 18:22:03 +01:00
|
|
|
location /meshviewer {
|
|
|
|
alias /var/www/html/meshviewer;
|
|
|
|
}
|
|
|
|
}
|