Skip to content

Instantly share code, notes, and snippets.

@gjreasoner
Created June 1, 2022 05:09
Show Gist options
  • Save gjreasoner/dec6c09a49d902aa1285f97b91937f18 to your computer and use it in GitHub Desktop.
Save gjreasoner/dec6c09a49d902aa1285f97b91937f18 to your computer and use it in GitHub Desktop.
Caddy remote config url via config_loaders url
{
"apps": {
"http": {
"servers": {
"example": {
"listen": [
":80"
],
"routes": [
{
"handle": [
{
"handler": "static_response",
"body": "Hello, dave?"
}
]
}
]
}
}
}
},
"admin": {
"listen": "0.0.0.0:2019",
"config": {
"load": {
"module": "http",
"method": "GET",
"url": "http://bd85-47-205-178-219.ngrok.io/caddy-config.json",
"header": {
"Authorization": [
"Bearer 123123"
]
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment