diff options
author | B Stack <bgstack15@gmail.com> | 2021-09-24 15:17:35 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2021-09-24 15:17:35 -0400 |
commit | d960f0cef937ae8a4a19e4dfaf3c617f1e93b10c (patch) | |
tree | 3a858b0e1c9fba106174052e85dfceff41398abe /extra/fuss.conf.nginx | |
parent | fix some building details for el7 (diff) | |
download | fuss-d960f0cef937ae8a4a19e4dfaf3c617f1e93b10c.tar.gz fuss-d960f0cef937ae8a4a19e4dfaf3c617f1e93b10c.tar.bz2 fuss-d960f0cef937ae8a4a19e4dfaf3c617f1e93b10c.zip |
fix x-forwarded-prefix header consumption
Now that I have experimented with X-Forwarded-Prefix and reverse
proxies, this logic works correctly now!
Diffstat (limited to 'extra/fuss.conf.nginx')
-rw-r--r-- | extra/fuss.conf.nginx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/extra/fuss.conf.nginx b/extra/fuss.conf.nginx new file mode 100644 index 0000000..9607cf6 --- /dev/null +++ b/extra/fuss.conf.nginx @@ -0,0 +1,11 @@ +# Nginx example config for fuss application +location /fuss/ { + proxy_redirect off; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Script-Name /albion; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-Prefix "/fuss"; + proxy_pass https://localhost:5003/; +} |