feat: refactor caddie to use external mappings and add example mappings

This commit is contained in:
2026-08-06 12:51:50 +05:30
parent c0dc4cb2db
commit 42577243b1
3 changed files with 32 additions and 66 deletions
+15
View File
@@ -0,0 +1,15 @@
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 default mappings;