Replies: 2 comments
-
|
I would like to enable CORS, and I am running in to the same problem. I can't set the middleware for a router when the name of the router is defined by Coolify after the compose file is authored. |
Beta Was this translation helpful? Give feedback.
0 replies
-
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

Uh oh!
There was an error while loading. Please reload this page.
-
I'm using traefik with custom configuration. In my configuration, I need to add these labels to my services depending on if the service is private or public.
traefik.http.routers.<router_name>.middlewares=private_svctraefik.http.routers.<router_name>.middlewares=public_svcMy traefik config:
I'm using docker compose as deployment because all my services are stored in a mono-repo where each folder has docker-compose.yml file which will be used to deploy the service.
However, since the label I'm trying to add includes a
<router_name>that will be generated by coolify, I cannot statically put the label in the codebase. Is there any variable I can use to grab that generated<router_name>? That way, I can put the label like this in the code base:traefik.http.routers.$SOME_VARIABLE.middlewares=private_svcBeta Was this translation helpful? Give feedback.
All reactions