btcpayserver / btcpayserver-docker

Docker resources for hosting BTCPayServer easily
MIT License
590 stars 363 forks source link

nginx access_log enabled #938

Open d2ro opened 1 month ago

d2ro commented 1 month ago

Hi, we're running the latest btcpayserver-docker (with "log-driver": "journald" in /etc/docker/daemon.json, if that matters). It seems that nginx access_log is enabled by default:

$ journalctl -e
[...]
Oct 11 12:39:10 example.com f33d0b06b6c1[518]: example.com 172.18.0.1 - - [11/Oct/2024:10:39:10 +0000] "GET / HTTP/2.0" 302 0 "-" "redacted"
Oct 11 12:39:11 example.com f33d0b06b6c1[518]: example.com 172.18.0.1 - - [11/Oct/2024:10:39:11 +0000] "GET /login?ReturnUrl=%2F HTTP/2.0" 200 15834 "-" "redacted"
[...]

The logs don't contain external IP addresses, but they do contain User-Agent headers, and they are flooding our logs. Is there a proper way to disable the logging?

Thank you very much in advance!