aboutsummaryrefslogtreecommitdiffstats
path: root/Caddyfile
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-09-23 07:32:33 +0000
committerAdam Soltys <[email protected]>2022-09-23 07:32:33 +0000
commit09ff8b746a357451b8ec384d19d7620a32414d44 (patch)
tree86bf9423c7e082b045e5bceb26d2b53cb603b073 /Caddyfile
parent06e142288d553900d8119029936aabe93e13b76b (diff)
parent883e624d4d645b6b1c1f4b85c4bea4625ba5b046 (diff)
downloadcoinos-server-09ff8b746a357451b8ec384d19d7620a32414d44.tar.gz
coinos-server-09ff8b746a357451b8ec384d19d7620a32414d44.zip
Merge branch 'prod2' into prod
Diffstat (limited to 'Caddyfile')
-rw-r--r--Caddyfile45
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}
+ }
+}