diff options
author | Chocobozzz <me@florianbigard.com> | 2022-07-15 15:30:14 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-07-18 11:37:18 +0200 |
commit | 42b40636991b97fe818007fab19091764fc5db73 (patch) | |
tree | db431787c06ce898d22e91ff771f795219274fc6 /config/production.yaml.example | |
parent | 654d4ede7fa4d0faa71e49bcfab6b65a686397b2 (diff) | |
download | PeerTube-42b40636991b97fe818007fab19091764fc5db73.tar.gz PeerTube-42b40636991b97fe818007fab19091764fc5db73.tar.zst PeerTube-42b40636991b97fe818007fab19091764fc5db73.zip |
Add ability for client to create server logs
Diffstat (limited to 'config/production.yaml.example')
-rw-r--r-- | config/production.yaml.example | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/config/production.yaml.example b/config/production.yaml.example index 3e4035eaa..042f5a641 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example | |||
@@ -25,6 +25,10 @@ rates_limit: | |||
25 | # 3 attempts in 5 min | 25 | # 3 attempts in 5 min |
26 | window: 5 minutes | 26 | window: 5 minutes |
27 | max: 3 | 27 | max: 3 |
28 | receive_client_log: | ||
29 | # 10 attempts in 10 min | ||
30 | window: 10 minutes | ||
31 | max: 10 | ||
28 | 32 | ||
29 | # Proxies to trust to get real client IP | 33 | # Proxies to trust to get real client IP |
30 | # If you run PeerTube just behind a local proxy (nginx), keep 'loopback' | 34 | # If you run PeerTube just behind a local proxy (nginx), keep 'loopback' |
@@ -166,15 +170,22 @@ object_storage: | |||
166 | 170 | ||
167 | log: | 171 | log: |
168 | level: 'info' # 'debug' | 'info' | 'warn' | 'error' | 172 | level: 'info' # 'debug' | 'info' | 'warn' | 'error' |
173 | |||
169 | rotation: | 174 | rotation: |
170 | enabled : true # Enabled by default, if disabled make sure that 'storage.logs' is pointing to a folder handled by logrotate | 175 | enabled : true # Enabled by default, if disabled make sure that 'storage.logs' is pointing to a folder handled by logrotate |
171 | max_file_size: 12MB | 176 | max_file_size: 12MB |
172 | max_files: 20 | 177 | max_files: 20 |
178 | |||
173 | anonymize_ip: false | 179 | anonymize_ip: false |
180 | |||
174 | log_ping_requests: true | 181 | log_ping_requests: true |
175 | log_tracker_unknown_infohash: true | 182 | log_tracker_unknown_infohash: true |
183 | |||
176 | prettify_sql: false | 184 | prettify_sql: false |
177 | 185 | ||
186 | # Accept warn/error logs coming from the client | ||
187 | accept_client_log: true | ||
188 | |||
178 | # Highly experimental support of Open Telemetry | 189 | # Highly experimental support of Open Telemetry |
179 | open_telemetry: | 190 | open_telemetry: |
180 | metrics: | 191 | metrics: |