File tree 3 files changed +23
-8
lines changed
3 files changed +23
-8
lines changed Original file line number Diff line number Diff line change 1
- https://example. org:443 {
1
+ https://ns.juev. org:8443 {
2
2
reverse_proxy /web* http://headscale-ui:8080
3
3
reverse_proxy * http ://headscale:8080
4
+
5
+ tls {
6
+ dns cloudflare {env.CF_API_TOKEN}
7
+ resolvers 1.1.1.1
8
+ }
4
9
}
Original file line number Diff line number Diff line change
1
+ FROM caddy:builder AS caddy-builder
2
+
3
+ RUN xcaddy build \
4
+ --with github.com/caddy-dns/cloudflare
5
+
6
+ FROM caddy:alpine
7
+
8
+ COPY --from=caddy-builder /usr/bin/caddy /usr/bin/caddy
Original file line number Diff line number Diff line change 1
1
services :
2
-
3
2
headscale :
4
3
container_name : headscale
5
4
image : headscale/headscale:latest
6
5
restart : unless-stopped
7
6
# ports:
8
- # - 8080:8080
7
+ # - 8080:8080
9
8
volumes :
10
9
- ./config:/etc/headscale
11
10
- ./data:/var/lib/headscale
@@ -17,11 +16,14 @@ services:
17
16
restart : unless-stopped
18
17
19
18
caddy :
20
- image : caddy:alpine
19
+ # image: caddy:alpine
20
+ build : .
21
21
restart : unless-stopped
22
22
ports :
23
- - " 80:80"
24
- - " 443:443 "
25
- - " 443:443 /udp"
23
+ # - "80:80"
24
+ - " 8443:8443 "
25
+ - " 8443:8443 /udp"
26
26
volumes :
27
- - ./Caddyfile:/etc/caddy/Caddyfile
27
+ - ./Caddyfile:/etc/caddy/Caddyfile
28
+ environment :
29
+ - CF_API_TOKEN=token
You can’t perform that action at this time.
0 commit comments