fix(docker): use a tunable for fastapi proxy host value

On aur-dev.archlinux.org, we use a proxy tunnel through our
internal nginx. This allows us to rewrite the Host header
based on whatever port we wish within internal nginx config.

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2022-01-15 15:49:12 -08:00
parent 8ae6754766
commit 32b4f75f01
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
4 changed files with 9 additions and 2 deletions

View file

@ -244,7 +244,8 @@ services:
image: aurweb:latest
init: true
environment:
- AUR_CONFIG=conf/config
# Proxy toward FastAPI.
- NGINX_PROXY_PORT=8444
entrypoint: /docker/nginx-entrypoint.sh
command: /docker/scripts/run-nginx.sh
ports: