mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
feat(nginx): access_log options
This commit is contained in:
parent
398f947d22
commit
37137017c2
5 changed files with 161 additions and 6 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue