feat: add base caddyfile content to mappings.ts
This commit is contained in:
@@ -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]) => {
|
||||
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user