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;