aboutsummaryrefslogtreecommitdiffstats
path: root/Caddyfile
blob: 16535102f4b13c306ed87e67061159ec2189ca16 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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}
	}
}