diff --git a/nginx.conf b/nginx.conf index 5e0c73684e..bc4cb5b265 100644 --- a/nginx.conf +++ b/nginx.conf @@ -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; @@ -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; } } }