DDEV simple addon-service routing #5750
adrianrudnik
started this conversation in
Ideas
Replies: 1 comment
-
I hope that helps and you'll explore this topic! Only a few people explore the amazing things that can be added using nginx. The place to start is exploring the traefik configuration to see if you can make it do what you want. Then after that. turn it into an add-on. The add-on is definitely the easy part. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a situation where I want to integrate an OIDC-service (imagine Keycloak) that comes with a
.well-known
discovery configuration (think absolute URLs used for configuration, retrieved from the OIDC).After skimming the documentation there seems to be no simple way to implement a simple traefik to ddev addon-service routing, yet all parameters seem there to support that.
Scenario is:
additional_hostnames: ["keycloak.mysite"]
.80
or443
, have the nice SSL stuff set-up, but want that domain going to keycloak directly.What I tried:
docker-compose.keycloak.yaml
, but that only allows hard and conflicting port mappings directly through docker.mysite.keycloak.yaml
, but that does not prevent the default routes to be registered within theHostRegexp
, so I need to fight with priority and other stuf, leading to a situation where avoiding DDEV is easier to set-up.What I would like to see:
Optional routing as a one-liner. Here is an example:
where the
:keycloak
part matches the last part fromddev-${DDEV_SITENAME}-keycloak
of the ddev-addon service. As theHTTP_EXPOSE
andHTTPS_EXPOSE
are also given (or present) the wiring should be pretty clear and uncomplicated. Having:keycloak
as string also simplifies the struct juggeling within Go. It also helps to identify disconnected hostnames in a docker compose-like syntax, so everything that contains a colon must not be routed to the main PHP instance.Beta Was this translation helpful? Give feedback.
All reactions