Add X-Headers for haproxy

Added X-Headers for haproxy configuration
master
drinn 8 years ago committed by GitHub
parent b53f8eef17
commit 835bbbc0a5
  1. 5
      documentation/PROXY.md

@ -131,6 +131,11 @@ frontend https
bind :80
bind :443 ssl crt /etc/haproxy/certs/cert_key.pem
# Add X-Headers necessary for HTTPS
# Replace frontend.example.com with your SSL host and include :[port] if not running on port 443
reqadd X-Forwarded-Host:\ frontend.example.com
reqadd X-Forwarded-Proto:\ https
# Bind URL with the right backend
acl is_libresonic path_beg -i /libresonic
use_backend libresonic-backend if is_libresonic

Loading…
Cancel
Save