Is it possible to pass request to php-fpm without nginx having volume mounted
I'm trying to migrate my legacy monolith to k8s, now I have nginx and php-fpm (with code) images and I want nginx to just serve http traffic and pass it to fpm, but nginx insist on having files, I don't have try_files directive, but it tries to find root and index files anyways. So is it at all possible to not mount source code to nginx, I really don't see why it should be there, but I couldn't find any working example nginx.conf: server { listen 80; index index.php; # This dir exist only in php-fpm container root /var/www/html/public; location ~* \.php$ { client_max_body_size 0; include fastc
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.