build(docker): forward server name to the PHP application

fixes #246
This commit is contained in:
Romain de Laage 2022-10-16 14:32:12 +00:00 committed by Yassine Doghri
parent 7213ed290c
commit 88fb618c28
1 changed files with 2 additions and 0 deletions

View File

@ -61,6 +61,7 @@ http {
location / {
fastcgi_param SCRIPT_FILENAME /opt/castopod/public/index.php;
include fastcgi_params;
fastcgi_param SERVER_NAME $host;
fastcgi_index index.php;
fastcgi_pass php-handler;
}
@ -69,6 +70,7 @@ http {
try_files $uri =404;
fastcgi_param SCRIPT_FILENAME /opt/castopod/public/$fastcgi_script_name;
include fastcgi_params;
fastcgi_param SERVER_NAME $host;
fastcgi_index index.php;
fastcgi_pass php-handler;
}