diff --git a/nginx/conf.d/local.conf b/nginx/conf.d/local.conf new file mode 100644 index 0000000..0d78f59 --- /dev/null +++ b/nginx/conf.d/local.conf @@ -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; + } +}