From 42b40636991b97fe818007fab19091764fc5db73 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 15 Jul 2022 15:30:14 +0200 Subject: Add ability for client to create server logs --- config/default.yaml | 11 +++++++++++ config/production.yaml.example | 11 +++++++++++ 2 files changed, 22 insertions(+) (limited to 'config') 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: # 3 attempts in 5 min window: 5 minutes max: 3 + receive_client_log: + # 10 attempts in 10 min + window: 10 minutes + max: 10 # Proxies to trust to get real client IP # If you run PeerTube just behind a local proxy (nginx), keep 'loopback' @@ -168,15 +172,22 @@ object_storage: log: level: 'info' # 'debug' | 'info' | 'warn' | 'error' + rotation: enabled : true # Enabled by default, if disabled make sure that 'storage.logs' is pointing to a folder handled by logrotate max_file_size: 12MB max_files: 20 + anonymize_ip: false + log_ping_requests: true log_tracker_unknown_infohash: true + prettify_sql: false + # Accept warn/error logs coming from the client + accept_client_log: true + # Highly experimental support of Open Telemetry open_telemetry: metrics: 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: # 3 attempts in 5 min window: 5 minutes max: 3 + receive_client_log: + # 10 attempts in 10 min + window: 10 minutes + max: 10 # Proxies to trust to get real client IP # If you run PeerTube just behind a local proxy (nginx), keep 'loopback' @@ -166,15 +170,22 @@ object_storage: log: level: 'info' # 'debug' | 'info' | 'warn' | 'error' + rotation: enabled : true # Enabled by default, if disabled make sure that 'storage.logs' is pointing to a folder handled by logrotate max_file_size: 12MB max_files: 20 + anonymize_ip: false + log_ping_requests: true log_tracker_unknown_infohash: true + prettify_sql: false + # Accept warn/error logs coming from the client + accept_client_log: true + # Highly experimental support of Open Telemetry open_telemetry: metrics: -- cgit v1.2.3