diff options
Diffstat (limited to 'Caddyfile')
| -rw-r--r-- | Caddyfile | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 00000000..16535102 --- /dev/null +++ b/Caddyfile @@ -0,0 +1,45 @@ +classic.coinos.io { + handle_path /api* { + reverse_proxy app:3119 + } + + handle /lnurl* { + reverse_proxy app:3118 + } + + handle /ws* { + reverse_proxy app:3119 + } + + handle { + root * /coinos + try_files {path}.html {path} /index.html + file_server + } + + tls { + dns cloudflare {env.CLOUDFLARE_AUTH_TOKEN} + } +} + +coinos.io { + handle_path /api* { + reverse_proxy app:3119 + } + + handle /lnurl* { + reverse_proxy app:3118 + } + + handle /ws* { + reverse_proxy app:3119 + } + + handle { + reverse_proxy ui:3000 + } + + tls { + dns cloudflare {env.CLOUDFLARE_AUTH_TOKEN} + } +} |
