Host component of bind_url
should be used in dynamic rules but isn't
#216
Labels
bug
Something isn't working
bind_url
should be used in dynamic rules but isn't
#216
Bug description
Not sure if this is a "bug" or misunderstanding of configuration, or a missing feature to be honest.
My use case
Dynamic routing rules generated by
traefik-proxy
ignore domain supplied in.public_url
configuration.Expected behaviour
I expect routing rules to include
Host()
component if that was configured inJupyterHub.bind_url
, insteadHost
rule is only included when jupyterhub runs with host based routing.If
bind_url="https://example.com"
, I expect dynamic routing rules to beActual behaviour
generated dynamic routing rules only include
PathPrefix
andPath
rules. Confirmed by code inspection here:traefik-proxy/jupyterhub_traefik_proxy/traefik_utils.py
Lines 44 to 64 in 9dcc5b6
I think
generate_rule
function should takehost
argument extracted from.public_url
configuration and if that is not empty include it in the rule.How to reproduce
Your personal set up
Full environment
Configuration
# jupyterhub_config.py
Logs
The text was updated successfully, but these errors were encountered: