@@davidofug I tried using shared variables in the dynamic configuration files but failed miserably. I am using environment variables in the actual traffic docker file and using them in the dynamic files.
@@davidofug I wanted to add a middleware to my pocketbase admin router, so that only the allowed IPs could access the /api/admin route. But I don't have a static IP address so, I may have to change it from time to time. That's why I wanted to use shared variables. But I couldn't do it under Proxy>>Dynamic Configs. A workaround was to set it in the main Traefik docker compose file and use it back in the dynamic config file, and I did that. But that requires me to restart the server when my home ip changes and that means 10-20 seconds of no service. :D
You saved my butt on setting this up on GCP thanks
Hey there, can you please give an example on how to use the Shared Variables as well?
I will most likely cover that in the next.
@@davidofug I tried using shared variables in the dynamic configuration files but failed miserably. I am using environment variables in the actual traffic docker file and using them in the dynamic files.
@@greendsnow Sorry about that. If you don't mind which use case was it that required Shared Variables.
@@davidofug I wanted to add a middleware to my pocketbase admin router, so that only the allowed IPs could access the /api/admin route. But I don't have a static IP address so, I may have to change it from time to time. That's why I wanted to use shared variables. But I couldn't do it under Proxy>>Dynamic Configs. A workaround was to set it in the main Traefik docker compose file and use it back in the dynamic config file, and I did that. But that requires me to restart the server when my home ip changes and that means 10-20 seconds of no service. :D
Have you been able to join the Discord community and discuss about this?