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.

Revisions

  1. gjreasoner created this gist Jun 1, 2022.
    38 changes: 38 additions & 0 deletions caddy-config.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,38 @@
    {
    "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"
    ]
    }
    }
    }
    }
    }