diff options
author | Yohan Boniface <yb@enix.org> | 2019-04-26 13:48:55 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-26 13:48:55 +0200 |
commit | c342726ad4ccbb90b8ff29f1cc1c89f9f7e8d98f (patch) | |
tree | 1a6d50694fc1db90bdb6d455d6988eb14eb9fd4b /config/production.yaml.example | |
parent | 4f0f2ab228d73dbec303914dd59b52f6cdaddf46 (diff) | |
download | PeerTube-c342726ad4ccbb90b8ff29f1cc1c89f9f7e8d98f.tar.gz PeerTube-c342726ad4ccbb90b8ff29f1cc1c89f9f7e8d98f.tar.zst PeerTube-c342726ad4ccbb90b8ff29f1cc1c89f9f7e8d98f.zip |
Allow to control RATES_LIMIT from configuration (#1787)
* Allow to control RATES_LIMIT from configuration
* @Chocobozzz review (squash me)
Diffstat (limited to 'config/production.yaml.example')
-rw-r--r-- | config/production.yaml.example | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/config/production.yaml.example b/config/production.yaml.example index 06baaf7d4..f1f0f12d1 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example | |||
@@ -8,6 +8,16 @@ webserver: | |||
8 | hostname: 'example.com' | 8 | hostname: 'example.com' |
9 | port: 443 | 9 | port: 443 |
10 | 10 | ||
11 | rates_limit: | ||
12 | login: | ||
13 | # 15 attempts in 5 min | ||
14 | window: 5 minutes | ||
15 | max: 15 | ||
16 | ask_send_email: | ||
17 | # 3 attempts in 5 min | ||
18 | window: 5 minutes | ||
19 | max: 3 | ||
20 | |||
11 | # Proxies to trust to get real client IP | 21 | # Proxies to trust to get real client IP |
12 | # If you run PeerTube just behind a local proxy (nginx), keep 'loopback' | 22 | # If you run PeerTube just behind a local proxy (nginx), keep 'loopback' |
13 | # If you run PeerTube behind a remote proxy, add the proxy IP address (or subnet) | 23 | # If you run PeerTube behind a remote proxy, add the proxy IP address (or subnet) |