From 88fb618c284c20dbe0c3ccd6f5a2e9e9d11c580a Mon Sep 17 00:00:00 2001
From: Romain de Laage <romain.delaage@rdelaage.ovh>
Date: Sun, 16 Oct 2022 14:32:12 +0000
Subject: [PATCH] build(docker): forward server name to the PHP application

fixes #246
---
 docker/production/web-server/nginx.conf | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/docker/production/web-server/nginx.conf b/docker/production/web-server/nginx.conf
index 425dcf2453..fc2e47a854 100644
--- a/docker/production/web-server/nginx.conf
+++ b/docker/production/web-server/nginx.conf
@@ -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;
         }
-- 
GitLab