Nginx tweaks

This commit is contained in:
Nathan McCarty 2023-11-09 00:09:54 -05:00
parent 83277ffc67
commit 662810aed2
Signed by: thatonelutenist
SSH Key Fingerprint: SHA256:hwQEcmak9E6sdU9bXc98RHw/Xd1AhpB5HZT7ZSVJkRM
1 changed files with 2 additions and 13 deletions

View File

@ -204,21 +204,9 @@
forceSSL = true; forceSSL = true;
useACMEHost = "mccarty.io"; useACMEHost = "mccarty.io";
locations = { locations = {
"/socket" = {
proxyPass = "http://100.104.25.128:8096";
extraConfig = ''
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Protocol $scheme;
proxy_set_header X-Forwarded-Host $http_host;
'';
};
"/" = { "/" = {
proxyPass = "http://100.104.25.128:8096"; proxyPass = "http://100.104.25.128:8096";
proxyWebsockets = true;
extraConfig = '' extraConfig = ''
allow all; allow all;
''; '';
@ -271,6 +259,7 @@
forceSSL = true; forceSSL = true;
useACMEHost = "mccarty.io"; useACMEHost = "mccarty.io";
locations."/" = { locations."/" = {
proxyWebsockets = true;
proxyPass = "http://100.104.25.128:13378"; proxyPass = "http://100.104.25.128:13378";
extraConfig = '' extraConfig = ''
allow 100.64.0.0/10; allow 100.64.0.0/10;