21 lines
402 B
TypeScript
21 lines
402 B
TypeScript
const mappings = {
|
|
// redirects
|
|
"http://ip": "redir:https://example.com{uri}",
|
|
|
|
// reverse proxies
|
|
"example.com": "http://localhost:8080",
|
|
|
|
// static files
|
|
"foo.example.com": "/opt/sites/foo",
|
|
|
|
// keys
|
|
"ssh.example.com": "key:ssh-ed25519 qwerty1234567890 example.com",
|
|
}
|
|
|
|
export const baseCaddyfile = `
|
|
example.com {
|
|
reverse_proxy http://localhost:8080;
|
|
}
|
|
`;
|
|
|
|
export default mappings; |