diff options
author | Mike Crute <mike@crute.us> | 2019-12-05 21:35:10 +0000 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2019-12-05 21:35:10 +0000 |
commit | 74e02d7322fab75ed392eece2b6b68ee059b326a (patch) | |
tree | 0a9d8917439e7fdcdbc407ba6a7a3c6683774bba /nginx-common/conf/nginx.conf | |
parent | de3ac7ab0a1221ac3ee372a5b4a44ba519fb0750 (diff) | |
download | dockerfiles-74e02d7322fab75ed392eece2b6b68ee059b326a.tar.bz2 dockerfiles-74e02d7322fab75ed392eece2b6b68ee059b326a.tar.xz dockerfiles-74e02d7322fab75ed392eece2b6b68ee059b326a.zip |
Add common nginx container
Diffstat (limited to 'nginx-common/conf/nginx.conf')
-rw-r--r-- | nginx-common/conf/nginx.conf | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/nginx-common/conf/nginx.conf b/nginx-common/conf/nginx.conf new file mode 100644 index 0000000..0cf617b --- /dev/null +++ b/nginx-common/conf/nginx.conf | |||
@@ -0,0 +1,36 @@ | |||
1 | user nginx; | ||
2 | worker_processes 1; | ||
3 | |||
4 | error_log /dev/stdout warn; | ||
5 | pid /var/run/nginx.pid; | ||
6 | |||
7 | events { | ||
8 | worker_connections 1024; | ||
9 | } | ||
10 | |||
11 | http { | ||
12 | include mime.types; | ||
13 | default_type application/octet-stream; | ||
14 | |||
15 | log_format combined_host '$host $remote_addr - $remote_user [$time_local] ' | ||
16 | '"$request" $status $body_bytes_sent ' | ||
17 | '"$http_referer" "$http_user_agent"'; | ||
18 | |||
19 | access_log /dev/stdout combined_host; | ||
20 | |||
21 | sendfile on; | ||
22 | tcp_nopush on; | ||
23 | server_tokens off; | ||
24 | |||
25 | keepalive_timeout 65; | ||
26 | |||
27 | gzip on; | ||
28 | gzip_disable "msie6"; | ||
29 | |||
30 | ssl_session_cache shared:SSL:10m; | ||
31 | ssl_session_timeout 10m; | ||
32 | ssl_dhparam /srv/nginx-conf/ssl/dhparam.pem; | ||
33 | |||
34 | include conf.d/*; | ||
35 | include /srv/nginx-conf/sites-enabled/*; | ||
36 | } | ||