From 10962ea40b52e2f166bea96571a1a6c250ef0f7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Mon, 17 Jul 2017 08:42:52 +0200 Subject: [PATCH] Dynamic resolution --- docker/nginx/conf.d/default.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/nginx/conf.d/default.conf b/docker/nginx/conf.d/default.conf index b02ae95..6816cac 100644 --- a/docker/nginx/conf.d/default.conf +++ b/docker/nginx/conf.d/default.conf @@ -1,12 +1,15 @@ server { root /srv/app/public; - resolver 127.0.0.11; location / { # try to serve file directly, fallback to index.php try_files $uri /index.php$is_args$args; } location ~ ^/index\.php(/|$) { + #resolver 127.0.0.11; + #set $upstream_host app; + #fastcgi_pass $upstream_host:9000; + # Uncomment the previous lines and comment the next one to enable dynamic resolution (incompatible compatible with Kubernetes) fastcgi_pass app:9000; fastcgi_split_path_info ^(.+\.php)(/.*)$; include fastcgi_params;