From bd11271621bd3759cfd194ed0119c0dc28155fd0 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Thu, 5 Mar 2026 14:57:28 +0100 Subject: update --- docker/nginx/default.conf.template | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'docker/nginx') diff --git a/docker/nginx/default.conf.template b/docker/nginx/default.conf.template index de2dc82..31485ea 100644 --- a/docker/nginx/default.conf.template +++ b/docker/nginx/default.conf.template @@ -1,5 +1,5 @@ server { - listen 0.0.0.0:80 ssl; + listen 0.0.0.0:443 ssl; ssl_certificate /etc/nginx/certs/self-signed.crt; ssl_certificate_key /etc/nginx/certs/self-signed.key; @@ -20,3 +20,23 @@ server { fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name; } } + +server { + listen 0.0.0.0:80; + + root /var/www/html/public; + index index.php; + + location / { + try_files $uri $uri/ /index.php?$args; + } + + location ~ \.php$ { + include fastcgi_params; + + fastcgi_pass php:9000; + + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name; + } +} -- cgit v1.2.3