Skip to content
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

httpd with relayd reverse proxy breaks redirects used by kcaldav #17

Open
ghost opened this issue Nov 24, 2023 · 0 comments
Open

httpd with relayd reverse proxy breaks redirects used by kcaldav #17

ghost opened this issue Nov 24, 2023 · 0 comments

Comments

@ghost
Copy link

ghost commented Nov 24, 2023

I'm running a web server on OpenBSD 7.3 using httpd, with relayd as a reverse proxy. httpd listens only on localhost, and relayd relays http connections to it.

I tried setting up kcaldav on this server, but it seems after my client sends auth data to the server, the response contains a location header which includes the port httpd listens on for local connections from relayd,
which causes the redirect to fail.

Looking at the code, kcaldav seems to just use the value of the SERVER_PORT fcgi parameter, which is set automatically through httpd and seemingly can't be changed through it. Setting appropriate values for X-Forwarded-* headers through relayd also doesn't seem to have any effect. I'm not sure if I'm doing something wrong, or if this kind of setup is currently unsupported.

It would be nice if I could just assign K_SERVER_PORT (for example) and have kcaldav use its value instead if available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants