Skip to content

Commit

Permalink
NAS-132468: Fix UI docker build (#11018)
Browse files Browse the repository at this point in the history
  • Loading branch information
undsoft authored Nov 13, 2024
1 parent 572e9e1 commit 83fed19
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docker/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ http {
}

location /api/docs {
proxy_pass http://%%HOSTNAME%%:6000/api/docs;
proxy_pass http://%%HOSTNAME%%/api/docs;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Scheme $scheme;
Expand All @@ -78,7 +78,7 @@ http {

location /ui {
if ( $request_method ~ ^POST$ ) {
proxy_pass http://%%HOSTNAME%%:6000;
proxy_pass http://%%HOSTNAME%%;
}
try_files $uri $uri/ /index.html =404;
alias /var/www/webui;
Expand All @@ -87,7 +87,7 @@ http {
}

location /websocket {
proxy_pass http://%%HOSTNAME%%:6000/websocket;
proxy_pass http://%%HOSTNAME%%/websocket;
proxy_http_version 1.1;
proxy_set_header X-Real-Remote-Addr $remote_addr;
proxy_set_header X-Real-Remote-Port $remote_port;
Expand All @@ -96,7 +96,7 @@ http {
}

location /websocket/shell {
proxy_pass http://%%HOSTNAME%%:6000/_shell;
proxy_pass http://%%HOSTNAME%%/_shell;
proxy_http_version 1.1;
proxy_set_header X-Real-Remote-Addr $remote_addr;
proxy_set_header X-Real-Remote-Port $remote_port;
Expand All @@ -110,7 +110,7 @@ http {
# do not add the path to proxy_pass because of automatic url decoding
# e.g. /api/v2.0/pool/dataset/id/tank%2Ffoo/ would become
# /api/v2.0/pool/dataset/id/tank/foo/
proxy_pass http://%%HOSTNAME%%:6000;
proxy_pass http://%%HOSTNAME%%;
proxy_http_version 1.1;
proxy_set_header X-Real-Remote-Addr $remote_addr;
proxy_set_header X-Real-Remote-Port $remote_port;
Expand All @@ -119,7 +119,7 @@ http {
}

location /_download {
proxy_pass http://%%HOSTNAME%%:6000;
proxy_pass http://%%HOSTNAME%%;
proxy_http_version 1.1;
proxy_set_header X-Real-Remote-Addr $remote_addr;
proxy_set_header X-Real-Remote-Port $remote_port;
Expand All @@ -129,7 +129,7 @@ http {
location /_upload {
# Allow uploads of any size. Its middlewared job to handle size.
client_max_body_size 0;
proxy_pass http://%%HOSTNAME%%:6000;
proxy_pass http://%%HOSTNAME%%;
# make sure nginx does not buffer the upload and pass directly to middlewared
proxy_request_buffering off;
proxy_http_version 1.1;
Expand All @@ -142,7 +142,7 @@ http {
}

location /_plugins {
proxy_pass http://127.0.0.1:6000/_plugins;
proxy_pass http://127.0.0.1/_plugins;
proxy_http_version 1.1;
proxy_set_header X-Real-Remote-Addr $remote_addr;
proxy_set_header X-Real-Remote-Port $remote_port;
Expand Down

0 comments on commit 83fed19

Please sign in to comment.