aboutsummaryrefslogtreecommitdiffstats
path: root/Caddyfile
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-09-23 00:48:37 -0700
committerAdam Soltys <[email protected]>2022-09-23 00:48:37 -0700
commit6c428749d0f091cdc6874a589a436d33eaf69497 (patch)
treee0b8434af5495448c7f825fccb56a206278013c0 /Caddyfile
parent22c38a077fea34a65d0b2ec1d6f411131f51313b (diff)
parent1c5d62e5d51b8dd5a9a5105212895caa29e4da7a (diff)
downloadcoinos-server-6c428749d0f091cdc6874a589a436d33eaf69497.tar.gz
coinos-server-6c428749d0f091cdc6874a589a436d33eaf69497.zip
Merge branch 'prod'
Diffstat (limited to 'Caddyfile')
-rw-r--r--Caddyfile49
1 files changed, 49 insertions, 0 deletions
diff --git a/Caddyfile b/Caddyfile
new file mode 100644
index 00000000..b4c49aba
--- /dev/null
+++ b/Caddyfile
@@ -0,0 +1,49 @@
+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}
+ }
+}
+
+v2.coinos.io {
+ redir https://coinos.io{uri} permanent
+}