20 lines
691 B
Text
20 lines
691 B
Text
server {
|
|
listen 443 ssl;
|
|
#listen [::]:443 ssl http2;
|
|
server_name uptime.asxp.io www.uptime.asxp.io;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/asxp.io/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/asxp.io/privkey.pem;
|
|
#include /etc/letsencrypt/options-ssl-nginx.conf;
|
|
#ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
|
|
|
location / {
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Host $host;
|
|
proxy_pass http://127.0.0.1:3001;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
}
|
|
}
|