go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
45.24k stars 5.5k forks source link

Add config option "USE_HOST_HEADER" #32564

Open jannispl opened 2 days ago

jannispl commented 2 days ago

Resolve #32554

wxiaoguang commented 2 days ago

Thank you very much!

There is an idea in my mind that maybe we could introduce a more general option than a bool "USE_HOST_HEADER" (actually it not only affects "host header", but also "scheme", so maybe it needs a better name). Will think about later (when I have some time) 🙏