add nginx default config file to use inside its composer

This commit is contained in:
2025-12-13 23:50:55 +03:30
parent fe23dfb27a
commit a89d5e1292

16
docker/nginx/default.conf Normal file
View File

@@ -0,0 +1,16 @@
server {
listen 80;
server_name localhost;
root /var/www/html/src;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
fastcgi_pass php:9000;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}