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/default.yaml | |
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/default.yaml')
-rw-r--r-- | config/default.yaml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/config/default.yaml b/config/default.yaml index 2c1b9c64f..7e07165b9 100644 --- a/config/default.yaml +++ b/config/default.yaml | |||
@@ -27,6 +27,10 @@ rates_limit: | |||
27 | # 3 attempts in 5 min | 27 | # 3 attempts in 5 min |
28 | window: 5 minutes | 28 | window: 5 minutes |
29 | max: 3 | 29 | max: 3 |
30 | receive_client_log: | ||
31 | # 10 attempts in 10 min | ||
32 | window: 10 minutes | ||
33 | max: 10 | ||
30 | 34 | ||
31 | # Proxies to trust to get real client IP | 35 | # Proxies to trust to get real client IP |
32 | # If you run PeerTube just behind a local proxy (nginx), keep 'loopback' | 36 | # If you run PeerTube just behind a local proxy (nginx), keep 'loopback' |
@@ -168,15 +172,22 @@ object_storage: | |||
168 | 172 | ||
169 | log: | 173 | log: |
170 | level: 'info' # 'debug' | 'info' | 'warn' | 'error' | 174 | level: 'info' # 'debug' | 'info' | 'warn' | 'error' |
175 | |||
171 | rotation: | 176 | rotation: |
172 | enabled : true # Enabled by default, if disabled make sure that 'storage.logs' is pointing to a folder handled by logrotate | 177 | enabled : true # Enabled by default, if disabled make sure that 'storage.logs' is pointing to a folder handled by logrotate |
173 | max_file_size: 12MB | 178 | max_file_size: 12MB |
174 | max_files: 20 | 179 | max_files: 20 |
180 | |||
175 | anonymize_ip: false | 181 | anonymize_ip: false |
182 | |||
176 | log_ping_requests: true | 183 | log_ping_requests: true |
177 | log_tracker_unknown_infohash: true | 184 | log_tracker_unknown_infohash: true |
185 | |||
178 | prettify_sql: false | 186 | prettify_sql: false |
179 | 187 | ||
188 | # Accept warn/error logs coming from the client | ||
189 | accept_client_log: true | ||
190 | |||
180 | # Highly experimental support of Open Telemetry | 191 | # Highly experimental support of Open Telemetry |
181 | open_telemetry: | 192 | open_telemetry: |
182 | metrics: | 193 | metrics: |