diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2025-08-10 10:46:41 +0200 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2025-08-10 10:46:41 +0200 |
commit | c14579871fa1241713128a2d0d5514af004e3371 (patch) | |
tree | 6b28c42958650d94c9aa1947a0b5c32eb869d89f /docker/nginx/default.conf.template |
initial commit
Diffstat (limited to 'docker/nginx/default.conf.template')
-rw-r--r-- | docker/nginx/default.conf.template | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/docker/nginx/default.conf.template b/docker/nginx/default.conf.template new file mode 100644 index 0000000..c82c019 --- /dev/null +++ b/docker/nginx/default.conf.template @@ -0,0 +1,19 @@ +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; + } +} |