Remove unnecessary configuration and prepare for more containers
This commit is contained in:
@@ -29,7 +29,7 @@ http {
|
||||
|
||||
# Connect to app service
|
||||
upstream php-handler {
|
||||
server app:9000;
|
||||
server monica:9000;
|
||||
}
|
||||
|
||||
server {
|
||||
@@ -59,7 +59,7 @@ http {
|
||||
# Remove X-Powered-By, which is an information leak
|
||||
fastcgi_hide_header X-Powered-By;
|
||||
|
||||
root /var/www/html/public;
|
||||
root /var/www/html/monica/public;
|
||||
|
||||
index index.html index.htm index.php;
|
||||
|
||||
@@ -115,7 +115,9 @@ http {
|
||||
|
||||
include fastcgi_params;
|
||||
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
# Cannot use $document_root as the path to monica on the docker container
|
||||
# is different to the path to the public files in this nginx container.
|
||||
fastcgi_param SCRIPT_FILENAME /var/www/html/public$fastcgi_script_name;
|
||||
# Bypass the fact that try_files resets $fastcgi_path_info
|
||||
# see: http://trac.nginx.org/nginx/ticket/321
|
||||
set $path_info $fastcgi_path_info;
|
||||
|
||||
Reference in New Issue
Block a user