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
Drone Proxy: Allow Custom Routes #289
Comments
I understand the use case here but I'm a little cautious about adding a feature that only makes sense in a single-drone context. One possibility would be to allow a "fallback" address that anything that is not a current backend is proxied to. In a multi-drone context this would provide a way to display a custom page when an invalid domain is accessed. In your case, it could point to a local nginx/caddy/whatever server which could serve from different directories depending on the hostname. |
I see your point. |
Gotcha, this should be do-able then. I should be able to do this over the next couple of days, but if you want to take it on I'd also accept a PR. My preference would be for this to be a single string like this:
(i.e. no |
This works like a charm. Paul, Thank you so much for the fast support and for adding the custom features I've requested. 🙌 |
Glad it works, thanks for following up! |
We're using plane in the standalone configuration (single drone, without dnsmasq / firefox).
We use a wilcard dns to map *.example.com => 1.2.3.4
In order to manage plane, we have a custom webservice. Currently we need a separate host or port for that, but we would like to host that on the same host and port as the drone.
For Example:
It would be nice if we could provide custom subdomain to route mapping in the drone.toml as a map.
Example:
If I'm correct, I could extend the code here, to make that work:
plane/drone/src/proxy/service.rs
Lines 203 to 236 in dbd550e
The text was updated successfully, but these errors were encountered: