Skip to content

Commit

Permalink
Add basic nginx config
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosribas committed May 7, 2024
1 parent 96c6ac2 commit 80d2017
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions nginx/conf.d/local.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# FastAPI application
upstream web {
server web:8000;
}

server {
listen 80;

location / {
# everything is passed to FastAPI
proxy_pass http://web;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
}
}

0 comments on commit 80d2017

Please sign in to comment.