aboutsummaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/default.yaml11
-rw-r--r--config/production.yaml.example11
2 files changed, 22 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
169log: 173log:
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
181open_telemetry: 192open_telemetry:
182 metrics: 193 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:
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
167log: 171log:
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
179open_telemetry: 190open_telemetry:
180 metrics: 191 metrics: