aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/nginx/peertube-https
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-11 10:45:06 +0100
committerChocobozzz <me@florianbigard.com>2018-01-11 10:46:49 +0100
commit85cd9bde5a93500f973773f46680c07dd90d5912 (patch)
treead8a59e03a51259b654ded57ff3dea6d4c302d73 /support/nginx/peertube-https
parent60650c77c8a2a98e92d869b237ae4900f369a8fc (diff)
downloadPeerTube-85cd9bde5a93500f973773f46680c07dd90d5912.tar.gz
PeerTube-85cd9bde5a93500f973773f46680c07dd90d5912.tar.zst
PeerTube-85cd9bde5a93500f973773f46680c07dd90d5912.zip
Remove unused webserver configuration
And update nginx configuration with a rate limit
Diffstat (limited to 'support/nginx/peertube-https')
-rw-r--r--support/nginx/peertube-https7
1 files changed, 5 insertions, 2 deletions
diff --git a/support/nginx/peertube-https b/support/nginx/peertube-https
index 794920280..c3465f74b 100644
--- a/support/nginx/peertube-https
+++ b/support/nginx/peertube-https
@@ -6,8 +6,8 @@ server {
6} 6}
7 7
8server { 8server {
9 listen 443 ssl http2; # spdy is deprecated on nginx 9 listen 443 ssl http2;
10 # listen [::]:443 ssl spdy; 10 # listen [::]:443 ssl http2;
11 server_name domain.tld; 11 server_name domain.tld;
12 12
13 # For example with Let's Encrypt 13 # For example with Let's Encrypt
@@ -30,6 +30,9 @@ server {
30 30
31 # Bypass PeerTube webseed route for better performances 31 # Bypass PeerTube webseed route for better performances
32 location /static/webseed { 32 location /static/webseed {
33 # Clients usually have 4 simultaneous webseed connections, so the real limit is 3MB/s per client
34 limit_rate 800k;
35
33 if ($request_method = 'OPTIONS') { 36 if ($request_method = 'OPTIONS') {
34 add_header 'Access-Control-Allow-Origin' '*'; 37 add_header 'Access-Control-Allow-Origin' '*';
35 add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS'; 38 add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS';