Dynamic resolution
This commit is contained in:
parent
6d5bf66804
commit
10962ea40b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user