Skip to content

Commit

Permalink
add application server to reverse proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
ninori9 committed Jan 5, 2025
1 parent cf5d9f2 commit 6c3ea16
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions reverse-proxy/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,12 @@ server {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}

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

0 comments on commit 6c3ea16

Please sign in to comment.