mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
34 lines
961 B
Text
34 lines
961 B
Text
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name localhost;
|
|
|
|
# Using a variable here stops nginx from crashing if the dev container is restarted or becomes otherwise unavailable
|
|
set $backend_upstream "http://devenv:3001";
|
|
set $dashboard_upstream "http://devenv:3002";
|
|
|
|
location / {
|
|
# 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 $dashboard_upstream$uri$is_args$args;
|
|
}
|
|
|
|
location /api {
|
|
resolver 127.0.0.11;
|
|
proxy_pass $backend_upstream$uri$is_args$args;
|
|
proxy_redirect off;
|
|
|
|
client_max_body_size 200M;
|
|
}
|
|
|
|
ssl_certificate /etc/ssl/certs/localhost-cert.pem;
|
|
ssl_certificate_key /etc/ssl/private/localhost-cert.key;
|
|
|
|
ssl_session_timeout 1d;
|
|
ssl_session_cache shared:MozSSL:10m;
|
|
ssl_session_tickets off;
|
|
|
|
ssl_protocols TLSv1.3;
|
|
ssl_prefer_server_ciphers off;
|
|
}
|