From 92f9cac25fad8fc14b99318e984e71b4da839018 Mon Sep 17 00:00:00 2001 From: Alexander Olofsson Date: Tue, 24 Sep 2019 16:21:27 +0200 Subject: [PATCH] funkwhale: Improve the nginx reverse proxy conf Partly for the soon-to-come 0.20 release --- charts/funkwhale/Chart.yaml | 2 +- charts/funkwhale/templates/configmap-front.yaml | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/charts/funkwhale/Chart.yaml b/charts/funkwhale/Chart.yaml index 129abb2..57720ca 100644 --- a/charts/funkwhale/Chart.yaml +++ b/charts/funkwhale/Chart.yaml @@ -4,4 +4,4 @@ appVersion: "0.19.1" description: A social platform to enjoy and share music icon: https://funkwhale.audio/favicon.png name: funkwhale -version: 0.2.3 +version: 0.2.4 diff --git a/charts/funkwhale/templates/configmap-front.yaml b/charts/funkwhale/templates/configmap-front.yaml index e2520ab..34720f8 100644 --- a/charts/funkwhale/templates/configmap-front.yaml +++ b/charts/funkwhale/templates/configmap-front.yaml @@ -92,10 +92,9 @@ data: } } proxy.conf: | - real_ip_header X-Forwarded-For; - set_real_ip_from 10.0.0.0/8; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; - proxy_set_header Host $http_x_forwarded_host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto; proxy_set_header X-Forwarded-Host $http_x_forwarded_host;