Fix Bad Gateway: Replace supervisor with entrypoint.sh, fix nginx.conf

This commit is contained in:
z0rayy
2026-06-10 17:26:17 +07:00
parent 7e956cc02e
commit 094329369e
3 changed files with 35 additions and 18 deletions
+6 -4
View File
@@ -1,6 +1,5 @@
worker_processes auto;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
@@ -23,18 +22,21 @@ http {
try_files $uri $uri/ /index.php?$query_string;
}
# PHP-FPM handler - all .php files are processed by PHP-FPM
# PHP-FPM: forward all .php requests to PHP-FPM on port 9000
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_read_timeout 300;
}
# Allow access to static files (HTML, CSS, JS, images)
# Cache static files
location ~* \.(html|css|js|jpg|jpeg|png|gif|ico|svg|woff|woff2|ttf|eot)$ {
expires max;
expires 1d;
access_log off;
}