Created
June 1, 2022 05:09
-
-
Save gjreasoner/dec6c09a49d902aa1285f97b91937f18 to your computer and use it in GitHub Desktop.
Caddy remote config url via config_loaders url
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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