aboutsummaryrefslogtreecommitdiffstats
path: root/Caddyfile
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-09-23 20:04:29 +0000
committerAdam Soltys <[email protected]>2022-09-23 20:04:29 +0000
commitc4ba477e779c37a7f777d1b38d0a7700199071d9 (patch)
treeb6a34a3b2d140234e4a34f5b87ff412dfe9c2d8b /Caddyfile
parent617091de6463b2620078fa853a7f3408fb37c74f (diff)
downloadcoinos-server-c4ba477e779c37a7f777d1b38d0a7700199071d9.tar.gz
coinos-server-c4ba477e779c37a7f777d1b38d0a7700199071d9.zip
move load balancing logic to separate repo
Diffstat (limited to 'Caddyfile')
-rw-r--r--Caddyfile34
1 files changed, 1 insertions, 33 deletions
diff --git a/Caddyfile b/Caddyfile
index b4c49aba..326054ae 100644
--- a/Caddyfile
+++ b/Caddyfile
@@ -1,28 +1,4 @@
-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 {
+:80 {
handle_path /api* {
reverse_proxy app:3119
}
@@ -38,12 +14,4 @@ coinos.io {
handle {
reverse_proxy ui:3000
}
-
- tls {
- dns cloudflare {env.CLOUDFLARE_AUTH_TOKEN}
- }
}
-
-v2.coinos.io {
- redir https://coinos.io{uri} permanent
-}