Fix logformat

This commit is contained in:
Paramtamtam 2021-05-03 21:14:15 +05:00
parent 009ec66d86
commit e2d06289c4
No known key found for this signature in database
GPG Key ID: 366371698FAD0A2B

View File

@ -16,9 +16,9 @@ nscache 65536
# Here we can change timeout values # Here we can change timeout values
timeouts 1 5 30 60 180 1800 15 60 timeouts 1 5 30 60 180 1800 15 60
log /dev/stdout
# Logging docs: <https://3proxy.org/doc/howtor.html#LOGFORMAT> # Logging docs: <https://3proxy.org/doc/howtor.html#LOGFORMAT>
logformat "-\""+_G{""time_unix"":%t, ""proxy"":{""type:"":""%N"", ""port"":%p}, ""error"":{""code"":""%E""}, ""user"":""%U"", ""client"":{""ip"":""%C"", ""port"":%c}, ""server"":{""ip"":""%R"", ""port"":%r}, ""bytes"":{""sent"":%O, ""received"":%I}, ""hostname"":""%n"", ""message"":""%T""}" log /dev/stdout
logformat "-\""+_G{""time_unix"":%t, ""proxy"":{""type:"":""%N"", ""port"":%p}, ""error"":{""code"":""%E""}, ""auth"":{""user"":""%U""}, ""client"":{""ip"":""%C"", ""port"":%c}, ""server"":{""ip"":""%R"", ""port"":%r}, ""bytes"":{""sent"":%O, ""received"":%I}, ""request"":{""hostname"":""%n""}, ""message"":""%T""}"
maxconn 1024 maxconn 1024