1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Remove unused webserver configuration

And update nginx configuration with a rate limit
This commit is contained in:
Chocobozzz 2018-01-11 10:45:06 +01:00
parent 60650c77c8
commit 85cd9bde5a
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 5 additions and 79 deletions

View file

@ -6,8 +6,8 @@ server {
}
server {
listen 443 ssl http2; # spdy is deprecated on nginx
# listen [::]:443 ssl spdy;
listen 443 ssl http2;
# listen [::]:443 ssl http2;
server_name domain.tld;
# For example with Let's Encrypt
@ -30,6 +30,9 @@ server {
# Bypass PeerTube webseed route for better performances
location /static/webseed {
# Clients usually have 4 simultaneous webseed connections, so the real limit is 3MB/s per client
limit_rate 800k;
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS';