Skip to content

bug: Coder should be able to run from non-root URL #17198

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

Closed
1 task done
njskalski opened this issue Apr 1, 2025 · 1 comment
Closed
1 task done

bug: Coder should be able to run from non-root URL #17198

njskalski opened this issue Apr 1, 2025 · 1 comment
Labels
needs-triage Issue that require triage

Comments

@njskalski
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I have a K8s cluster with configured ingress and auth. I want Coder to be one of many services in that cluster. Most of them just have their own sub-paths, like http://hostname/openobserve . I looked and looked and Coder does not seem to have a "URL_PREFIX" setting and I keep getting 404 errors on all assets referred in index.html.

Is this something that can be fixed? I don't want to route all my http traffic in that cluster to Coder or modify DNS settings now.

Relevant Log Output

Expected Behavior

No response

Steps to Reproduce

,

Environment

  • Host OS:
  • Coder version:

Additional Context

No response

@njskalski njskalski added the needs-triage Issue that require triage label Apr 1, 2025
@phorcys420
Copy link
Member

phorcys420 commented Apr 13, 2025

hey @njskalski, thanks for reaching out!

this is currently not implemented due to instability and security concerns (cookies are shared on a domain level) related to sub-path based reverse-proxying, see some previous discussions on this subject:

this also adds a layer of complexity to how we handle URLs in the product, which is why we chose not to support it at the moment.


out of curiosity, what use-case is forcing you to use sub-path based reverse-proxying instead of domain-based?

@phorcys420 phorcys420 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage Issue that require triage
Projects
None yet
Development

No branches or pull requests

2 participants