From 12e888d58f30cde027ea1ab5b97956f54d71ee14 Mon Sep 17 00:00:00 2001 From: abhishek9686 Date: Sun, 24 Nov 2024 16:54:18 +0400 Subject: [PATCH 1/2] bind caddy to public ip --- compose/docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compose/docker-compose.yml b/compose/docker-compose.yml index e32481393..4d94f3045 100644 --- a/compose/docker-compose.yml +++ b/compose/docker-compose.yml @@ -52,8 +52,8 @@ services: - caddy_data:/data - caddy_conf:/config ports: - - "80:80" - - "443:443" + - "$SERVER_HOST:80:80" + - "$SERVER_HOST:443:443" coredns: #network_mode: host From d4c345733026450272c7ff6d2cc11b62a8bc04ef Mon Sep 17 00:00:00 2001 From: abhishek9686 Date: Sun, 24 Nov 2024 16:59:17 +0400 Subject: [PATCH 2/2] set netclient on server to 443 --- scripts/nm-quick.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/nm-quick.sh b/scripts/nm-quick.sh index 232eb3f02..41fe603e2 100755 --- a/scripts/nm-quick.sh +++ b/scripts/nm-quick.sh @@ -127,7 +127,7 @@ setup_netclient() { ./netclient install echo "Register token: $TOKEN" sleep 2 - netclient join -t $TOKEN + netclient join -t $TOKEN --static-port -p 443 echo "waiting for netclient to become available" local found=false