stiQueuR pronounced \sti.kœʁ\ (oui oui baguette 🥖 🇫🇷) manages the link of qr.taryev.fr
(QR code sticker on my laptop).
Edit link.txt then commit & push to main.
A GitHub action will update the subdomain's Caddy configuration.
Edit/add repository secrets in repo's actions secret and variables settings.
HOST,PORT,USER,KEY: credentials to establish SSH connection to server,CADDYENDOINT: path to Caddy API endpoint 1.
qr.acme.web {
redir https://www.youtube.com/watch?v=dQw4w9WgXcQ
}
If you don't use CaddyFiles you probably know how to edit a Caddy JSON config file to handle a route with a Location header and a 302 status code 🚀.
Footnotes
-
To get your full endpoint path, you have to read the JSON version of your Caddy config file using
$ curl localhost:2019/config/ | jq↩