change(docker): host fastapi over plain http

We don't need the https certificates being dealt with in the fastapi
service; we will define our certificates in any frontend nginx
running on top.

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-11-27 17:07:52 -08:00
parent d675c0dc26
commit 9f9b1c1732
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
2 changed files with 2 additions and 21 deletions

View file

@ -23,7 +23,7 @@ http {
gzip on;
upstream hypercorn {
upstream asgi_backend {
server fastapi:8000;
}
@ -142,7 +142,7 @@ http {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
proxy_buffering off;
proxy_pass https://hypercorn;
proxy_pass http://asgi_backend;
}
}