3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

Fix API vhost in nginx container

This commit is contained in:
Dragory 2022-06-26 15:23:53 +03:00
parent f463abb3e2
commit 122f535e34
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -3,10 +3,15 @@ server {
listen [::]:443 ssl http2;
server_name _API_DOMAIN_;
location / {
# Using a variable here stops nginx from crashing if the dev container is restarted or becomes otherwise unavailable
set $backend_upstream devenv;
proxy_pass http://$backend_upstream:_API_PORT_;
set $backend_upstream "http://devenv:_API_PORT_";
# Using a variable in proxy_pass also requires resolver to be set.
# This is the address of the internal docker compose DNS server.
resolver 127.0.0.11;
proxy_pass $backend_upstream;
client_max_body_size 200M;
}