Skip to content

Commit

Permalink
fix: nginx for ui and relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Phillip Maffettone committed Apr 10, 2024
1 parent e524fa1 commit c76b3b7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 4 additions & 1 deletion containers/mmm5-tax-day-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ services:
command: python3 /src/bluesky-adaptive-ui/bluesky_adaptive_ui/default_dash_app/app.py --agent-address gsas
volumes:
- type: bind
source: ../bluesky-adaptive-ui
source: ../../bluesky-adaptive-ui
target: /src/bluesky-adaptive-ui
read_only: true

Expand Down Expand Up @@ -71,6 +71,9 @@ services:
depends_on:
gsas:
condition: service_started
gsas-ui:
condition: service_started
kmeans-gsas:
condition: service_started


9 changes: 5 additions & 4 deletions containers/nginx/locs.d/gsas.conf
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
location /gsas/ {
proxy_pass http://gsas:8000/;

location /gsas-ui/ {
proxy_pass http://gsas-ui:8050/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_read_timeout 60s;
}

location /gsas/ui/ {
proxy_pass http://gsas-ui:8050/;
location /gsas/ {
proxy_pass http://gsas:8000/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Expand Down

0 comments on commit c76b3b7

Please sign in to comment.