Stocki
Stocki•11mo ago

Passing custom argument to deno CLI

Hi there ! I'm currently using windmill to synchronize data between database using some deno typescripts. Some API I'm posting on just changed their SSL Certificate a few days ago and I'm having this issue during the runtime :
TypeError: error sending request for url
https://xxxx.business.dev/path/to/api): error trying to connect: invalid peer certificate: UnknownIssuer
TypeError: error sending request for url
https://xxxx.business.dev/path/to/api): error trying to connect: invalid peer certificate: UnknownIssuer
Some quickfix I would like to implement for now would be to disable SSL Verification on deno using that argument --unsafely-ignore-certificate-errors is there actually a way to pass custom argument to the deno runtime using windmill ? I checked the online documentation but didn't find anything
2 Replies
Hugo C.
Hugo C.•11mo ago
Hello, if you're self hosting, you can pass custom deno flags by setting the DENO_FLAGS environment variable of your workers. You can find more info in the readme.
Stocki
Stocki•11mo ago
Thank you for your anwser, we're self hosting it, I'll check with the IT team to add that flag on some workers 🙂