-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Add HAProxy Config to reverse-proxies.en-us.md #17407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Addition of HAProxy
Looks a bit overly complicated? Not sure what the url rewrite magic is intended to do/fix/workaround Also there might be an inconsistency: root path /git vs. /gitea, |
Because it is, or at least I did not find a simpler way yet after spending my whole day trying to make it work with HAProxy. For the url rewrite it's because Gitea wait for GET / to serve the main page, and without it it will receive GET /gitea/ instead. The previous command work in the same way, if you ask example.com/gitea without the trailing slash you will get an empty GET, so this time HAProxy will throw you an error. Now that I have written all that there me be a way to merge both with a better regex... For the ROOT_PATH I misstyped it sorry, but this part is a for subdirectory, not a subdomain, so it is necessary Edit: I see the overcomplication part, I removed the subdomain for the second example |
Codecov Report
@@ Coverage Diff @@
## main #17407 +/- ##
==========================================
+ Coverage 45.16% 45.26% +0.09%
==========================================
Files 784 788 +4
Lines 88229 88440 +211
==========================================
+ Hits 39849 40028 +179
- Misses 41908 41933 +25
- Partials 6472 6479 +7
Continue to review full report at Codecov.
|
* Update reverse-proxies.en-us.md Addition of HAProxy * Update reverse-proxies.en-us.md
Addition of HAProxy, probably need some rewriting