Cleanup + fix nginx

This commit is contained in:
CommanderRedYT committed 2025-01-22 10:06:00 +01:00
1 parent e487fb695a
commit 4a4efaf5ae
11 files changed
+107 -78

No files matched your search

+8 -11
View File
@@ -54,7 +54,7 @@ server {
server_tokens off;
root /app/public;
index index.php;
index index.html index.htm index.php;
# make .well-known directory accessible
location ~ /.well-known {
@@ -66,21 +66,18 @@ server {
}
location / {
try_files $uri $uri.php $uri/ /index.php$is_args$args;
if (!-e $request_filename){
rewrite ^(.*)$ /$1.php;
}
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include fastcgi_params;
try_files $uri =404;
fastcgi_pass php:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~ \.html$ {
try_files $uri $uri.html $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
try_files $uri $uri.php $uri/ /index.php$is_args$args;
include fastcgi_params;
}
error_page 404 /404;