You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tfgrid3/nextcloud/scripts/caddy.sh
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,13 @@ export DOMAIN=$NEXTCLOUD_DOMAIN
3
3
4
4
if$IPV4&&!$GATEWAY;then
5
5
export PORT=443
6
+
7
+
# Wait for DNS to propagate
8
+
interface=$(ip route show default | cut -d "" -f 5)
9
+
ipv4_address=$(ip a show $interface| grep -Po 'inet \K[\d.]+')
10
+
while! dig $DOMAIN| grep -q $ipv4_address;do
11
+
sleep 5
12
+
done
6
13
else
7
14
export PORT=80
8
15
fi
@@ -17,4 +24,4 @@ else
17
24
`needs ports 3478/TCP and 3478/UDP open/forwarded in your firewall/router` `running the Talk container requires a public IP and this VM does not have one. It is still possible to use Talk in a limited capacity. Please consult the documentation for details`'
0 commit comments