Hi,
I have just started using the DigitalOcean(DO) App Platform integration, which I really like. There is however one specific issue I can not work out. My service requires knowledge of the app url, which I enter into DO settings using a bindable variable. Ex:
MY_SERVICE_URL=${APP_URL}
In this way, I do not need seperate configs if I need to fire up another instance, or edit on doppler if someone messes up and delete the app (url would probably change). See DigitalOcean
Now, if omit this one secret from doppler and add it to DO directly, it will be lost once I hit âsyncâ on the integration. Is there any way of using bindable variables (DO-side), or am I restricted to a hard code this url in the doppler project (having MY_SERVICE_URL
in the config).
Best,
Stig
Hi @Stig_Korsnes!
Welcome to the Doppler Community!
Glad to hear that youâre liking the DigitalOcean integration! Our integration syncs to App Level variables, which are propagated to all components setup under the app. That said, each individual component can have variables set on it and these will override the App Level variables and can be bindable variables. So, while you canât add MY_SERVICE_URL=${APP_URL}
on the App Level variables (because Doppler will just override it), you can set it on a component level.
Iâm not sure if thatâs what you need, but figured Iâd mention it as a possibility! As an aside â is APP_URL
something automatically populated by DigitalOcean? If itâs not, itâs worth noting that we also support something similar to bindable variables. We call it secret referencing and it basically uses the same syntax DO uses. If you have an APP_URL
set somewhere in Doppler, then you can reference that inside your config so that MY_SERVICE_URL
is automatically updated to match that. Changing it would still require modifying it in Doppler though.
Regards,
-Joel
1 Like
Thanks @watsonian ! That`s great, I did not even think of DigitalOcean component level variables, I have never used them. If doppler keeps them untouched, then the issue is solved 
APP_URL (among others) can be referenced in the DO env settings just like doppler secret referencing (although without the âtooltip curtainâ), and populated by DO. I assume they are set by DO at the build step. ( I can not echo these from the container)
Best,
Stig