- Update Dockerfile to use inline CMD instead of external start.sh script to resolve execution issues with CRLF line endings - Fix nginx fastcgi_pass configuration to use localhost:9000 for PHP-FPM communication - Correct API endpoint paths in frontend from /src/api.php to /api.php to match nginx document root configuration - Ensure Composer dependencies are properly installed with PHP 8.3 compatibility 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
32 lines
706 B
Plaintext
32 lines
706 B
Plaintext
server {
|
|
listen 80;
|
|
server_name localhost;
|
|
root /var/www/html;
|
|
index index.php index.html;
|
|
|
|
error_log /var/log/nginx/error.log;
|
|
access_log /var/log/nginx/access.log;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php?$query_string;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
try_files $uri =404;
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
fastcgi_pass localhost:9000;
|
|
fastcgi_index index.php;
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
}
|
|
|
|
location ~ /\.ht {
|
|
deny all;
|
|
}
|
|
|
|
location ~ /\.git {
|
|
deny all;
|
|
}
|
|
}
|