Changeset View
Changeset View
Standalone View
Standalone View
docker/conf/nginx.conf
Show All 13 Lines | http { | ||||
sendfile on; | sendfile on; | ||||
keepalive_timeout 65; | keepalive_timeout 65; | ||||
client_max_body_size 100M; | client_max_body_size 100M; | ||||
# 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; | ||||
log_format combined_with_duration '$remote_addr - $remote_user [$time_local] ' | |||||
'"$request" $status $body_bytes_sent ' | |||||
'"$http_referer" "$http_user_agent" $request_time'; | |||||
access_log /dev/stdout combined_with_duration; | |||||
server { | server { | ||||
listen 5080 default_server; | listen 5080 default_server; | ||||
# Add a trailing slash to top level requests (e.g. http://localhost:5080/flower) | # 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 | ||||
▲ Show 20 Lines • Show All 116 Lines • Show Last 20 Lines |