mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Revert "fix(docker): use a tunable for fastapi proxy host value"
This reverts commit 32b4f75f01
.
This commit is contained in:
parent
32b4f75f01
commit
377bf32cfb
4 changed files with 2 additions and 9 deletions
|
@ -69,8 +69,6 @@ services:
|
|||
- data:/data
|
||||
|
||||
nginx:
|
||||
environment:
|
||||
- NGINX_PROXY_PORT=443
|
||||
restart: always
|
||||
volumes:
|
||||
- data:/data
|
||||
|
|
|
@ -244,8 +244,7 @@ services:
|
|||
image: aurweb:latest
|
||||
init: true
|
||||
environment:
|
||||
# Proxy toward FastAPI.
|
||||
- NGINX_PROXY_PORT=8444
|
||||
- AUR_CONFIG=conf/config
|
||||
entrypoint: /docker/nginx-entrypoint.sh
|
||||
command: /docker/scripts/run-nginx.sh
|
||||
ports:
|
||||
|
|
|
@ -136,7 +136,7 @@ http {
|
|||
|
||||
location / {
|
||||
proxy_pass http://asgi_backend;
|
||||
proxy_set_header Host HTTP_HOST;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Ssl on;
|
||||
|
|
|
@ -21,8 +21,4 @@ fi
|
|||
|
||||
cp -vf /docker/config/nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
# NGINX_PROXY_PORT must be defined for the `nginx` service
|
||||
# within `docker-compose.yml`.
|
||||
sed -i "s|HTTP_HOST|\$host:${NGINX_PROXY_PORT}|g" /etc/nginx/nginx.conf
|
||||
|
||||
exec "$@"
|
||||
|
|
Loading…
Add table
Reference in a new issue