diff options
author | Chocobozzz <me@florianbigard.com> | 2018-03-29 10:58:24 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-03-29 11:03:30 +0200 |
commit | 490b595a01c5824ff63ffb87f0efdfca95f4bf3b (patch) | |
tree | 3ad716fbb97a8b4ee946ad907202b82934a33d7c /config | |
parent | 23f4c3d412974fa5fda52589d1192e098e260f1a (diff) | |
download | PeerTube-490b595a01c5824ff63ffb87f0efdfca95f4bf3b.tar.gz PeerTube-490b595a01c5824ff63ffb87f0efdfca95f4bf3b.tar.zst PeerTube-490b595a01c5824ff63ffb87f0efdfca95f4bf3b.zip |
Prevent brute force login attack
Diffstat (limited to 'config')
-rw-r--r-- | config/default.yaml | 6 | ||||
-rw-r--r-- | config/production.yaml.example | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/config/default.yaml b/config/default.yaml index 26fc5c128..bf772faf6 100644 --- a/config/default.yaml +++ b/config/default.yaml | |||
@@ -6,6 +6,12 @@ webserver: | |||
6 | hostname: 'localhost' | 6 | hostname: 'localhost' |
7 | port: 9000 | 7 | port: 9000 |
8 | 8 | ||
9 | # Proxies to trust to get real client IP | ||
10 | # If you run PeerTube just behind a local proxy (nginx), keep 'loopback' | ||
11 | # If you run PeerTube behind a remote proxy, add the proxy IP address (or subnet) | ||
12 | trust_proxy: | ||
13 | - 'loopback' | ||
14 | |||
9 | # Your database name will be "peertube"+database.suffix | 15 | # Your database name will be "peertube"+database.suffix |
10 | database: | 16 | database: |
11 | hostname: 'localhost' | 17 | hostname: 'localhost' |
diff --git a/config/production.yaml.example b/config/production.yaml.example index 43cacee3b..d362e0b8a 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example | |||
@@ -7,6 +7,12 @@ webserver: | |||
7 | hostname: 'example.com' | 7 | hostname: 'example.com' |
8 | port: 443 | 8 | port: 443 |
9 | 9 | ||
10 | # Proxies to trust to get real client IP | ||
11 | # If you run PeerTube just behind a local proxy (nginx), keep 'loopback' | ||
12 | # If you run PeerTube behind a remote proxy, add the proxy IP address (or subnet) | ||
13 | trust_proxy: | ||
14 | - 'loopback' | ||
15 | |||
10 | # Your database name will be "peertube"+database.suffix | 16 | # Your database name will be "peertube"+database.suffix |
11 | database: | 17 | database: |
12 | hostname: 'localhost' | 18 | hostname: 'localhost' |