document loading headers from files

This commit is contained in:
Robin Appelman 2024-01-09 22:11:49 +01:00
commit 52e50df8cd

View file

@ -22,6 +22,13 @@ hook = "https://hook.example.com/hook2/call"
headers = { authorization = "...." } headers = { authorization = "...." }
body = { event_type = "build" } body = { event_type = "build" }
# you can load header values from external files to keep your screts separate
[[feed]]
feed = "https://example.com/feed3.xml"
hook = "https://hook.example.com/hook3/call"
headers = { authorization = "/run/secrets/hook-auth" }
body = { event_type = "build" }
# trigger on docker hub updates instead of rss feed update # trigger on docker hub updates instead of rss feed update
[[feed]] [[feed]]
feed = "docker-hub://matrixdotorg/synapse" feed = "docker-hub://matrixdotorg/synapse"