From 348b0501387a15c17ee37f7461833fb414516634 Mon Sep 17 00:00:00 2001 From: Tim de Pater Date: Tue, 5 Nov 2019 14:26:39 +0100 Subject: [PATCH] Include other files in nginx/conf.d to allow for customization --- config/nginx.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/nginx.conf b/config/nginx.conf index 4a81b2d..10a5c7c 100644 --- a/config/nginx.conf +++ b/config/nginx.conf @@ -10,6 +10,7 @@ http { include mime.types; default_type application/octet-stream; + # Define custom log format to include reponse times log_format main_timed '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for" ' @@ -81,4 +82,7 @@ http { fastcgi_pass 127.0.0.1:9000; } } + + # Include other server configs + include /etc/nginx/conf.d/*.conf; }