Skip to content

Commit

Permalink
Update nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
X-Oracle authored Feb 25, 2024
1 parent 5763aa5 commit 188df97
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ http {
sub_filter $proxy_host $host;
sub_filter_once off;

proxy_pass http://127.0.0.1:2053/pane/arv-ui;
proxy_pass http://127.0.0.1:2053/panel/arv-ui;
proxy_set_header Host $proxy_host;

proxy_http_version 1.1;
Expand All @@ -59,8 +59,23 @@ http {
resolver 1.1.1.1;
}

location /ws/api {
if ($http_upgrade != "websocket") {
return 404;
}
proxy_redirect off;
proxy_pass http://127.0.0.1:800/ws/api;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location / {
proxy_pass https://127.0.0.1:800;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
root /var/www/html;
index index.html index.htm;
}
}
}

0 comments on commit 188df97

Please sign in to comment.