From f3738d69c54a49438b33cbd9b708beea3d842cc1 Mon Sep 17 00:00:00 2001 From: Josh Fabean Date: Mon, 19 Jun 2023 22:29:30 -0400 Subject: [PATCH] Adding extra proxy_set_header to fix redirect issue on media. ref #194 --- changelog.d/nginx-media-redirect-fix.fix | 1 + installation/pleroma.nginx | 1 + 2 files changed, 2 insertions(+) create mode 100644 changelog.d/nginx-media-redirect-fix.fix diff --git a/changelog.d/nginx-media-redirect-fix.fix b/changelog.d/nginx-media-redirect-fix.fix new file mode 100644 index 0000000000..fb57fd02a0 --- /dev/null +++ b/changelog.d/nginx-media-redirect-fix.fix @@ -0,0 +1 @@ +Fixing 302 redirect issue with media diff --git a/installation/pleroma.nginx b/installation/pleroma.nginx index 9890cb2b19..abf42438ba 100644 --- a/installation/pleroma.nginx +++ b/installation/pleroma.nginx @@ -86,6 +86,7 @@ server { slice 1m; proxy_cache_key $host$uri$is_args$args$slice_range; proxy_set_header Range $slice_range; + proxy_set_header Host $host; proxy_cache_valid 200 206 301 304 1h; proxy_cache_lock on; proxy_ignore_client_abort on;