Skip to content

Commit 10962ea

Browse files
committed
Dynamic resolution
1 parent 6d5bf66 commit 10962ea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docker/nginx/conf.d/default.conf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
server {
22
root /srv/app/public;
3-
resolver 127.0.0.11;
43

54
location / {
65
# try to serve file directly, fallback to index.php
76
try_files $uri /index.php$is_args$args;
87
}
98
location ~ ^/index\.php(/|$) {
9+
#resolver 127.0.0.11;
10+
#set $upstream_host app;
11+
#fastcgi_pass $upstream_host:9000;
12+
# Uncomment the previous lines and comment the next one to enable dynamic resolution (incompatible compatible with Kubernetes)
1013
fastcgi_pass app:9000;
1114
fastcgi_split_path_info ^(.+\.php)(/.*)$;
1215
include fastcgi_params;

0 commit comments

Comments
 (0)