Skip to content

Commit

Permalink
Merge pull request #237 from dsgnr/nginx_conf
Browse files Browse the repository at this point in the history
Fix nginx proxy for api
  • Loading branch information
dsgnr authored Nov 5, 2024
2 parents b26a9d3 + 82a97c9 commit 3c667d7
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 3c667d7

Please sign in to comment.