Sign in
Log inSign up
Tobias Müller

24 likes

·

1.8K reads

4 comments

Yasoob Khalid
Yasoob Khalid
Jan 11, 2023

This was fairly detailed. Thanks for writing it! I still remember a time when I was searching for such a solution but there wasn't enough content available online on this topic. Even now I think only Caddy has out of the box support for this.

·
Richard Chou
Richard Chou
Jul 9, 2023

I have questions about these two lines:

sudo echo -e '${file(./configs.js):caddyService}' | sudo tee /etc/systemd/system/caddy.service

sudo printf '${file(./configs.js):caddyFile}' | sudo tee /etc/caddy/Caddyfile

How can userdata execute javascript?

·
·2 replies
Tobias Müller
Tobias Müller
Author
·Jul 9, 2023

This is replaced by the Serverless Framework during deployment. See serverless.com/framework/docs/providers/aw…

·
Richard Chou
Richard Chou
Jul 9, 2023

Interesting, thanks Tobias Müller

·