tobychui / zoraxy

A general purpose HTTP reverse proxy and forwarding tool. Now written in Go!
https://zoraxy.aroz.org
GNU Affero General Public License v3.0
2.91k stars 173 forks source link

[HELP] Clarify Proxy Header Configuration #357

Open overcuriousity opened 8 hours ago

overcuriousity commented 8 hours ago

Error for Nextcloud while attempting to configure proxy headers Operating Nextcloud along other applications in my network. I am migrating from Nginx Proxy Manager (because of issues with docker). As I am doing okay with general Nginx configuration, I managed to set the headers that no errors show up in the nextcloud configuration in NPM like this: image

This configuration does not translate to zoraxy: image

results to nextcloud error: image

Describe what have you tried See the configuration above.

Describe the networking setup you are using

tobychui commented 3 hours ago

@overcuriousity I like your question, it is like "why there is no gear stick in my new electric car" 😆. Many people still think Zoraxy is nginx under the hood but it isn't, it is a completely new, build from scratch reverse proxy project.

Back to your question, Zoraxy does all that automatically. The custom headers are for manual override to some custom fixed values for legacy projects compatibility that relies on headers for logic processing (Notes: Nowadays, it is a common sense that you should never trust the header sent from the client). Remove all custom headers configs in your Zoraxy and you should be good to go.