funkwhale: Improve the nginx reverse proxy conf

Partly for the soon-to-come 0.20 release
This commit is contained in:
Alexander Olofsson 2019-09-24 16:21:27 +02:00
parent 6f023f2fa4
commit 92f9cac25f
No known key found for this signature in database
GPG key ID: D439C9470CB04C73
2 changed files with 3 additions and 4 deletions

View file

@ -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

View file

@ -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;