Skip to content

Commit 214f811

Browse files
add pwa to cloacking rules fiirst
1 parent 956db03 commit 214f811

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bind/entrypoint.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ else
4343
fi
4444

4545
# Only write to cloaking-rules.txt if both domain and internal_ip are available
46+
# Initialize cloaking-rules.txt with pwa
47+
echo "pwa.${domain} https.dappnode.private" >cloaking-rules.txt # Add PWA domain to cloaking rules
4648
if [ -n "$domain" ] && [ -n "$internal_ip" ]; then
47-
echo "$domain $internal_ip" >cloaking-rules.txt
48-
echo "pwa.${domain} https.dappnode.private" >>cloaking-rules.txt # Add PWA domain to cloaking rules
49+
echo "$domain $internal_ip" >>cloaking-rules.txt
4950

5051
kill $pid
5152
wait $pid
5253

5354
/app/dnscrypt-proxy
5455
else
55-
touch cloaking-rules.txt
5656
echo "[ERROR] Missing domain or internal IP. Cloaking rules not updated. Dyndns domain will not be forwarded to internal IP."
5757
fi

0 commit comments

Comments
 (0)