Changeset View
Changeset View
Standalone View
Standalone View
docker/conf/nginx.conf
worker_processes 1; | worker_processes 1; | ||||
# Show startup logs on stderr; switch to debug to print, well, debug logs when | # Show startup logs on stderr; switch to debug to print, well, debug logs when | ||||
# running nginx-debug | # running nginx-debug | ||||
error_log /dev/stderr info; | error_log /dev/stderr info; | ||||
events { | events { | ||||
worker_connections 1024; | worker_connections 1024; | ||||
} | } | ||||
http { | http { | ||||
include mime.types; | include mime.types; | ||||
default_type application/octet-stream; | default_type application/octet-stream; | ||||
sendfile on; | sendfile on; | ||||
keepalive_timeout 65; | keepalive_timeout 65; | ||||
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; | ||||
server { | server { | ||||
listen 80 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 | ||||
# 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 | ||||
▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines |