Skip to content

Commit

Permalink
fix: Dash moved to top of nginx path
Browse files Browse the repository at this point in the history
  • Loading branch information
onuratakan committed Oct 3, 2024
1 parent 98b5e47 commit 4e7cd9b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
16 changes: 9 additions & 7 deletions the.conf
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,16 @@ server {
proxy_read_timeout 500;
}

location /second {
proxy_pass http://localhost:3001;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-SCRIPT-NAME /second/;
proxy_read_timeout 500;
location / {

proxy_pass http://localhost:3001;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_read_timeout 500;


}
location /second/static {
location /static {
alias /app/Server/upsonic_on_prem/dash/staticfiles;
}
}
2 changes: 0 additions & 2 deletions upsonic_on_prem/dash/dash/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,6 @@



USE_ONE = os.environ.get("use_one", "false").lower() == "true"



from dash.tracer import provider
Expand Down
2 changes: 0 additions & 2 deletions upsonic_on_prem/dash/dash/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,3 @@
if settings.DEBUG:
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)

if settings.USE_ONE:
urlpatterns = [path(r'^second/', include(urlpatterns))]

0 comments on commit 4e7cd9b

Please sign in to comment.