Skip to content

Commit

Permalink
Merge pull request from GHSA-cpmr-mw4j-99r7
Browse files Browse the repository at this point in the history
  • Loading branch information
farioas committed Feb 22, 2023
1 parent 480c22a commit 60a3ef5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions deploy/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -116,33 +116,33 @@ http {
return 204;
}

location /static {
location /static/ {
alias /label-studio/label_studio/core/static_build/;
}

# Frontend react
# Source: https://github.com/heartexlabs/label-studio-frontend
location /label-studio-frontend {
alias /label-studio/label_studio/frontend/dist/lsf;
location /label-studio-frontend/ {
alias /label-studio/label_studio/frontend/dist/lsf/;
}

# Data Manager
# Source: https://github.com/heartexlabs/dm2
location /dm {
alias /label-studio/label_studio/frontend/dist/dm;
location /dm/ {
alias /label-studio/label_studio/frontend/dist/dm/;
}

# LabelStudio frontend
# Source: https://github.com/heartexlabs/label-studio/blob/HEAD/label_studio/frontend/src
location /react-app {
alias /label-studio/label_studio/frontend/dist/react-app;
location /react-app/ {
alias /label-studio/label_studio/frontend/dist/react-app/;
}

location /nginx_health {
return 200;
}

location /favicon.ico {
location = /favicon.ico {
alias /label-studio/label_studio/core/static_build/images/favicon.ico;
}

Expand Down Expand Up @@ -196,7 +196,7 @@ http {
send_timeout 90;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header Host $host;
proxy_set_header X-Request-ID $request_id;
proxy_pass_header Content-Type;
proxy_redirect off;
Expand Down

0 comments on commit 60a3ef5

Please sign in to comment.