From cd5b794fe17807108cc1d868fa0079057819e56b Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Thu, 28 Mar 2019 01:29:47 +0100 Subject: [PATCH] Add proxy_pass back, which is required --- nginx.conf | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/nginx.conf b/nginx.conf index 13d04aa..41ec577 100644 --- a/nginx.conf +++ b/nginx.conf @@ -26,16 +26,17 @@ http { location / { proxy_pass http://peertube: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; - client_max_body_size 600M; - proxy_connect_timeout 600; - proxy_send_timeout 600; - proxy_read_timeout 600; - send_timeout 600; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + client_max_body_size 600M; + proxy_connect_timeout 600; + proxy_send_timeout 600; + proxy_read_timeout 600; + send_timeout 600; } location ~ ^/(static/(thumbnails|previews|avatars)|client)/ { + proxy_pass http://peertube:9000; proxy_cache peertube_cache; proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504; proxy_cache_revalidate on;