aboutsummaryrefslogtreecommitdiffstats
path: root/Caddyfile
diff options
context:
space:
mode:
Diffstat (limited to 'Caddyfile')
-rw-r--r--Caddyfile56
1 files changed, 41 insertions, 15 deletions
diff --git a/Caddyfile b/Caddyfile
index 3dc0100b..16535102 100644
--- a/Caddyfile
+++ b/Caddyfile
@@ -1,19 +1,45 @@
-:80 {
- handle_path /api* {
- reverse_proxy app:3119
- }
+classic.coinos.io {
+ handle_path /api* {
+ reverse_proxy app:3119
+ }
- handle /lnurl* {
- reverse_proxy app:3118
- }
+ handle /lnurl* {
+ reverse_proxy app:3118
+ }
- handle /ws* {
- reverse_proxy app:3119
- }
+ handle /ws* {
+ reverse_proxy app:3119
+ }
- handle {
- root * /coinos
- try_files {path}.html {path} /index.html
- file_server
- }
+ 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}
+ }
}