Skip to content

Commit

Permalink
redirects all work when running locally
Browse files Browse the repository at this point in the history
  • Loading branch information
bendhouseart committed Sep 18, 2024
1 parent 13989f7 commit 35770d6
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ server {
listen 80;
listen [::]:80;
server_name 127.0.0.1;
client_max_body_size 1200M;

#access_log /var/log/nginx/host.access.log main;

Expand All @@ -14,10 +15,18 @@ server {
proxy_pass http://ui:3000;
}

location /api {
proxy_pass http://api:8082;
location /api/ {
proxy_pass http://api:8082/;
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;
}

#location /api/session {
# proxy_pass http://api:8082/session;
#}

error_page 404 /404.html;

# redirect server error pages to the static page /50x.html
Expand Down

0 comments on commit 35770d6

Please sign in to comment.