fix: css
This commit is contained in:
+14
-5
@@ -5,10 +5,13 @@ server {
|
||||
root /var/www/html/public;
|
||||
index index.php index.html;
|
||||
|
||||
# Readiness/Liveness
|
||||
location = /healthz { access_log off; return 200 "ok\n"; }
|
||||
# Health checks
|
||||
location = /healthz {
|
||||
access_log off;
|
||||
return 200 "ok\n";
|
||||
}
|
||||
|
||||
# FPM Ping/Status (optional absichern)
|
||||
# FPM ping/status (optional, secure in prod)
|
||||
location = /fpm-ping {
|
||||
access_log off;
|
||||
include fastcgi_params;
|
||||
@@ -17,6 +20,7 @@ server {
|
||||
fastcgi_param SCRIPT_NAME /ping;
|
||||
fastcgi_param PATH_INFO /ping;
|
||||
}
|
||||
|
||||
location = /fpm-status {
|
||||
access_log off;
|
||||
include fastcgi_params;
|
||||
@@ -26,10 +30,12 @@ server {
|
||||
fastcgi_param PATH_INFO /status;
|
||||
}
|
||||
|
||||
# Main app
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
}
|
||||
|
||||
# PHP handling
|
||||
location ~ \.php$ {
|
||||
include fastcgi_params;
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
@@ -39,9 +45,12 @@ server {
|
||||
fastcgi_buffers 16 16k;
|
||||
}
|
||||
|
||||
location ~ /\.ht { deny all; }
|
||||
# Deny hidden files
|
||||
location ~ /\.ht {
|
||||
deny all;
|
||||
}
|
||||
|
||||
# optionale Asset-Caches
|
||||
# Cache static assets
|
||||
location ~* \.(?:css|js|jpg|jpeg|gif|png|svg|ico|webp|woff2?)$ {
|
||||
access_log off;
|
||||
expires 7d;
|
||||
|
||||
Reference in New Issue
Block a user