feat(nginx): access_log options

This commit is contained in:
arcnmx 2024-06-16 10:26:59 -07:00
parent 398f947d22
commit 37137017c2
5 changed files with 161 additions and 6 deletions

View file

@ -33,11 +33,14 @@ in {
#X-Content-Type-Options = "nosniff";
#X-XSS-Protection = "1; mode=block";
};
accessLog.format = mkDefault "combined_host";
commonHttpConfig = ''
map $scheme $hsts_header {
https "max-age=31536000; includeSubdomains; preload";
}
#proxy_cookie_path / "/; secure; HttpOnly; SameSite=strict";
log_format combined_host '$remote_addr - $remote_user@$host [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"';
'';
clientMaxBodySize = mkDefault "512m";
virtualHosts.fallback = {