Changeset View
Changeset View
Standalone View
Standalone View
nginx.conf
Show All 9 Lines | http { | ||||
sendfile on; | sendfile on; | ||||
keepalive_timeout 65; | keepalive_timeout 65; | ||||
# Built-in Docker resolver. Needed to allow on-demand resolution of proxy | # Built-in Docker resolver. Needed to allow on-demand resolution of proxy | ||||
# upstreams. | # upstreams. | ||||
resolver 127.0.0.11 valid=30s; | resolver 127.0.0.11 valid=30s; | ||||
server { | server { | ||||
# Add a trailing slash to top level requests (e.g. http://localhost/flower) | listen 5080 default_server; | ||||
# Add a trailing slash to top level requests (e.g. http://localhost:5080/flower) | |||||
rewrite ^/([^/]+)$ /$1/ permanent; | rewrite ^/([^/]+)$ /$1/ permanent; | ||||
# In this pile of proxies, all upstreams are set using a variable. This | # In this pile of proxies, all upstreams are set using a variable. This | ||||
# makes nginx DNS-resolve the name of the upstream when clients request | # makes nginx DNS-resolve the name of the upstream when clients request | ||||
# them, rather than on start. This avoids an unstarted container preventing | # them, rather than on start. This avoids an unstarted container preventing | ||||
# nginx from starting. | # nginx from starting. | ||||
# | # | ||||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |