From 89a2a8dd77559114072ec183fb9d8be21118dfdb Mon Sep 17 00:00:00 2001 From: liujinyu Date: Thu, 6 Jul 2017 16:32:03 +0800 Subject: [PATCH] add extend points in nginx/kong conf templates --- kong/templates/nginx.lua | 1 + kong/templates/nginx_kong.lua | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/kong/templates/nginx.lua b/kong/templates/nginx.lua index 344e2aa7a8a..3b7f5402b07 100644 --- a/kong/templates/nginx.lua +++ b/kong/templates/nginx.lua @@ -21,5 +21,6 @@ events { http { include 'nginx-kong.conf'; + include 'conf.d/nginx_*.conf'; } ]] diff --git a/kong/templates/nginx_kong.lua b/kong/templates/nginx_kong.lua index faa97ffead5..389802f2e14 100644 --- a/kong/templates/nginx_kong.lua +++ b/kong/templates/nginx_kong.lua @@ -150,6 +150,8 @@ server { kong.handle_error() } } + + include 'conf.d/kong_*.conf'; } server { @@ -190,5 +192,7 @@ server { location /robots.txt { return 200 'User-agent: *\nDisallow: /'; } + + include 'conf.d/admin_*.conf'; } ]]