X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=support%2Fnginx%2Fpeertube;h=225241bac66f3b0391ef1dac86084cc295c5d3be;hb=e8e09e27ff49e694638b7f24dbb97e8de25ac416;hp=fee0f5d1c09144460ee6c97b6aa9660f51cd18b5;hpb=28f3d1b36a70426795240c9370e47b6c4ba847f8;p=github%2FChocobozzz%2FPeerTube.git diff --git a/support/nginx/peertube b/support/nginx/peertube index fee0f5d1c..225241bac 100644 --- a/support/nginx/peertube +++ b/support/nginx/peertube @@ -59,7 +59,7 @@ server { } # Bypass PeerTube for performance reasons. Could be removed - location ~ ^/client/(.*\.(js|css|woff2|otf|ttf|woff|eot))$ { + location ~ ^/client/(.*\.(js|css|png|svg|woff2|otf|ttf|woff|eot))$ { add_header Cache-Control "public, max-age=31536000, immutable"; alias /var/www/peertube/peertube-latest/client/dist/$1; @@ -91,7 +91,7 @@ server { } location / { - proxy_pass http://localhost:9000; + proxy_pass http://127.0.0.1:9000; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; @@ -156,14 +156,14 @@ server { proxy_http_version 1.1; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host; - proxy_pass http://localhost:9000; + proxy_pass http://127.0.0.1:9000; } location /socket.io { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host; - proxy_pass http://localhost:9000; + proxy_pass http://127.0.0.1:9000; # enable WebSockets proxy_http_version 1.1;