44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
# ntfy.nxshock.me -> 127.0.0.1:8090
|
|
server {
|
|
http2 on;
|
|
server_name ntfy.nxshock.me;
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:8090;
|
|
proxy_set_header Host $host;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_buffering off;
|
|
proxy_request_buffering off;
|
|
proxy_redirect off;
|
|
}
|
|
|
|
access_log /dev/null;
|
|
error_log /dev/null;
|
|
|
|
|
|
|
|
listen 443 ssl; # managed by Certbot
|
|
ssl_certificate /etc/letsencrypt/live/nxshock.me/fullchain.pem; # managed by Certbot
|
|
ssl_certificate_key /etc/letsencrypt/live/nxshock.me/privkey.pem; # managed by Certbot
|
|
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
|
|
|
}
|
|
|
|
server {
|
|
if ($host = ntfy.nxshock.me) {
|
|
return 301 https://$host$request_uri;
|
|
} # managed by Certbot
|
|
|
|
|
|
server_name ntfy.nxshock.me;
|
|
listen 80;
|
|
return 404; # managed by Certbot
|
|
|
|
|
|
}
|