generated from coop-cloud/example
Make uvicorn understand nginx
This commit is contained in:
parent
c3b0a59fde
commit
41565ec82e
|
@ -41,7 +41,12 @@ services:
|
|||
target: /usr/local/bin/entrypoint.sh
|
||||
mode: 0555
|
||||
entrypoint: /usr/local/bin/entrypoint.sh
|
||||
command: "uvicorn --host 0.0.0.0 keycloak_collective_portal:app"
|
||||
command: |
|
||||
uvicorn
|
||||
--host 0.0.0.0
|
||||
--forwarded-allow-ips='*'
|
||||
--proxy-headers
|
||||
keycloak_collective_portal:app"
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
|
|
|
@ -30,6 +30,7 @@ http {
|
|||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Host $server_name;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue