forked from nutomic/peertube.social
Add proxy_pass back, which is required
This commit is contained in:
parent
952abb4a3f
commit
cd5b794fe1
1 changed files with 9 additions and 8 deletions
17
nginx.conf
17
nginx.conf
|
@ -26,16 +26,17 @@ http {
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://peertube:9000;
|
proxy_pass http://peertube:9000;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
client_max_body_size 600M;
|
client_max_body_size 600M;
|
||||||
proxy_connect_timeout 600;
|
proxy_connect_timeout 600;
|
||||||
proxy_send_timeout 600;
|
proxy_send_timeout 600;
|
||||||
proxy_read_timeout 600;
|
proxy_read_timeout 600;
|
||||||
send_timeout 600;
|
send_timeout 600;
|
||||||
}
|
}
|
||||||
location ~ ^/(static/(thumbnails|previews|avatars)|client)/ {
|
location ~ ^/(static/(thumbnails|previews|avatars)|client)/ {
|
||||||
|
proxy_pass http://peertube:9000;
|
||||||
proxy_cache peertube_cache;
|
proxy_cache peertube_cache;
|
||||||
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
|
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
|
||||||
proxy_cache_revalidate on;
|
proxy_cache_revalidate on;
|
||||||
|
|
Loading…
Reference in a new issue