40 lines
1.5 KiB
Plaintext
40 lines
1.5 KiB
Plaintext
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name t34.hardnerd-nodes.com hardnerd-nodes.com www.hardnerd-nodes.com;
|
|
access_log off;
|
|
location ^~ /.well-known/acme-challenge/ { root /var/lib/hn-sgw/acme; }
|
|
location / { return 301 https://$host$request_uri; }
|
|
}
|
|
server {
|
|
listen 443 ssl;
|
|
listen [::]:443 ssl;
|
|
server_name t34.hardnerd-nodes.com;
|
|
include /etc/nginx/hn-cloudflare-realip.conf;
|
|
ssl_certificate /etc/hn-gateway-letsencrypt/live/t34.hardnerd-nodes.com/fullchain.pem;
|
|
ssl_certificate_key /etc/hn-gateway-letsencrypt/live/t34.hardnerd-nodes.com/privkey.pem;
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
access_log off;
|
|
error_log /var/log/nginx/hn-subscribe-error.log crit;
|
|
location ~ ^/s/([^/]+)/?$ {
|
|
rewrite ^/s/([^/]+)/?$ /api/v1/client/subscribe?token=$1 break;
|
|
proxy_pass https://127.0.0.1:28443;
|
|
include /etc/nginx/hn-subscribe-proxy.conf;
|
|
}
|
|
location = /api/v1/client/subscribe {
|
|
proxy_pass https://127.0.0.1:28443;
|
|
include /etc/nginx/hn-subscribe-proxy.conf;
|
|
}
|
|
location / { return 404; }
|
|
}
|
|
server {
|
|
listen 443 ssl;
|
|
listen [::]:443 ssl;
|
|
server_name hardnerd-nodes.com www.hardnerd-nodes.com;
|
|
ssl_certificate /etc/hn-gateway-letsencrypt/live/t34.hardnerd-nodes.com/fullchain.pem;
|
|
ssl_certificate_key /etc/hn-gateway-letsencrypt/live/t34.hardnerd-nodes.com/privkey.pem;
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
access_log off;
|
|
return 301 https://hardnerd.net$request_uri;
|
|
}
|