How to use a proxy / baseUrl? #251
Unanswered
code-and-more-2025
asked this question in
Ideas
Replies: 2 comments
|
I created an issue with exactly this issue: #268 |
0 replies
|
I did some more reseach (see the issue) and the outcome is that it uses the host header from the request, so if you set this correctly, it should work. In nginx, the working configuration looks like: |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
My setup:
Apache SSL Proxy is running on port 1234 with TLS 1.3
Apache forwards to 127.0.0.1 port 8080 (podman container with WikiDocs).
Expected behavior:
Click on login button calls "https://example.com:1234/homepage?auth"
Actual behavior:
Click on login button calls "http://127.0.0.1:8080/homepage?auth"
Cause:
From the podman apps perspective apache calls service with "http://127.0.0.1:8080".
Solution:
Do not detect path, set baseUrl in app and use "$baseUrl/homepage?auth"
Issue:
Alternative: use relative paths "/homepage?auth"
or better "http://127.0.0.1:8080/custompath/homepage?auth" -> "/custompath/homepage?auth"
Hint: setting button works, as it does not use path parsing.
Is this already supported? Do you know a workaround?
Thanks a lot!
All reactions