diff --git a/caddie.ts b/caddie.ts index 920099c..114baa6 100755 --- a/caddie.ts +++ b/caddie.ts @@ -1,12 +1,8 @@ import { writeFileSync } from "fs" -import mappings from "./mappings" +import mappings, { baseCaddyfile } from "./mappings" let caddyfile = `# Caddyfile -hy-pr.link { - redir /silicoflare https://silicoflare.dev - redir /flare https://silicoflare.dev -} - +${baseCaddyfile} ` Object.entries(mappings).map(([key, value]) => { diff --git a/mappings.example.ts b/mappings.example.ts index 729d6a9..7336959 100644 --- a/mappings.example.ts +++ b/mappings.example.ts @@ -12,4 +12,10 @@ const mappings = { "ssh.example.com": "key:ssh-ed25519 qwerty1234567890 example.com", } +export const baseCaddyfile = ` +example.com { + reverse_proxy http://localhost:8080; +} +`; + export default mappings; \ No newline at end of file