add logging to new routes

This commit is contained in:
einhornimmond 2025-05-21 16:26:10 +02:00
parent f1870fe2f2
commit cbd7910f8b

View File

@ -58,11 +58,17 @@ server {
# keep assets for a week
add_header Cache-Control "public, max-age=604800";
try_files $uri =404;
access_log $GRADIDO_LOG_PATH/nginx-access.frontend.log gradido_log;
error_log $GRADIDO_LOG_PATH/nginx-error.frontend.log warn;
}
# hashed assets
location ~* \.(?:js|css|json)$ {
add_header Cache-Control "public, max-age=31536000, immutable";
try_files $uri =404;
access_log $GRADIDO_LOG_PATH/nginx-access.frontend.log gradido_log;
error_log $GRADIDO_LOG_PATH/nginx-error.frontend.log warn;
}
# Frontend (default)