feat: add base caddyfile content to mappings.ts

This commit is contained in:
2026-09-28 16:45:21 +05:30
parent 85d2b596df
commit 73420fe654
2 changed files with 8 additions and 6 deletions
+2 -6
View File
@@ -1,12 +1,8 @@
import { writeFileSync } from "fs" import { writeFileSync } from "fs"
import mappings from "./mappings" import mappings, { baseCaddyfile } from "./mappings"
let caddyfile = `# Caddyfile let caddyfile = `# Caddyfile
hy-pr.link { ${baseCaddyfile}
redir /silicoflare https://silicoflare.dev
redir /flare https://silicoflare.dev
}
` `
Object.entries(mappings).map(([key, value]) => { Object.entries(mappings).map(([key, value]) => {
+6
View File
@@ -12,4 +12,10 @@ const mappings = {
"ssh.example.com": "key:ssh-ed25519 qwerty1234567890 example.com", "ssh.example.com": "key:ssh-ed25519 qwerty1234567890 example.com",
} }
export const baseCaddyfile = `
example.com {
reverse_proxy http://localhost:8080;
}
`;
export default mappings; export default mappings;