Skip to content

Commit

Permalink
Fix nginx proxy for api
Browse files Browse the repository at this point in the history
  • Loading branch information
dsgnr committed Nov 5, 2024
1 parent b26a9d3 commit 82a97c9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions frontend/nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
server {
listen 80;

location ~ ^/(api|docs) {
proxy_pass http://api: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;
proxy_set_header X-Forwarded-Proto $scheme;
}

location / {
root /usr/share/nginx/html;
index index.html;
Expand Down

0 comments on commit 82a97c9

Please sign in to comment.