2022-11-20 20:03:01 -06:00
|
|
|
map $http_upgrade $connection_upgrade {
|
2022-07-02 10:24:10 -05:00
|
|
|
default upgrade;
|
|
|
|
'' close;
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
#listen 443 ssl http2;
|
|
|
|
listen 443 ssl;
|
2024-04-01 00:44:23 -05:00
|
|
|
server_name superintendent.aninix.net;
|
2022-07-02 10:24:10 -05:00
|
|
|
|
2023-11-09 13:03:06 -06:00
|
|
|
include conf/sec.conf;
|
|
|
|
# include conf/default.csp.conf;
|
|
|
|
# include conf/local.conf;
|
|
|
|
include conf/letsencrypt.conf;
|
2022-07-02 10:24:10 -05:00
|
|
|
|
|
|
|
location /
|
|
|
|
{
|
2022-12-18 22:21:39 -06:00
|
|
|
proxy_set_header Host $http_host;
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
proxy_set_header X-Forwarded-Server $host;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
2024-04-01 00:44:23 -05:00
|
|
|
proxy_pass http://superintendent.msn0.aninix.net:8123;
|
2022-12-18 22:21:39 -06:00
|
|
|
proxy_redirect http:// https://;
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection $connection_upgrade;
|
|
|
|
proxy_read_timeout 86400;
|
2022-07-02 10:24:10 -05:00
|
|
|
}
|
|
|
|
}
|