Skip to content

Commit

Permalink
Update local.conf
Browse files Browse the repository at this point in the history
- Local Nginx config updated to proxy_pass to the correct container. Now the local development UI uses http/2 when the URL is `https://localhost` (note that we don't include the port)!
  • Loading branch information
MattHalloran committed Oct 22, 2024
1 parent 2c28bdd commit 27e792f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions nginx/conf.d/local.conf
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@ server {
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

# Root directory and index file
root /usr/share/nginx/html;
index index.html index.htm;

# Proxying requests to React app
location / {
try_files $uri $uri/ =404;
proxy_pass http://ui:3000; # Change to UI container's name
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_set_header X-Forwarded-Proto $scheme;
}

# Additional configuration for reverse proxy or other settings can go here
}

0 comments on commit 27e792f

Please sign in to comment.