fix(nginx): cloudflared remote_addr

This commit is contained in:
arcnmx 2024-06-24 10:39:01 -07:00
parent 0bcfd82a60
commit b5c1b9de84
4 changed files with 89 additions and 18 deletions

View file

@ -38,9 +38,9 @@ in {
map $scheme $hsts_header {
https "max-age=31536000; includeSubdomains; preload";
}
log_format combined_host '$remote_addr - $remote_user@$host [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"';
log_format combined_host '$remote_addr@$scheme - $remote_user@$host [$time_local]'
' "$request" $status $body_bytes_sent'
' "$http_referer" "$http_user_agent"';
'';
clientMaxBodySize = mkDefault "512m";
virtualHosts.fallback = {