diff --git a/docker/Dockerfile b/docker/Dockerfile index ce6a929c..e0b0b3b4 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -131,17 +131,6 @@ RUN export out_adapt=$(ip -o -4 route show to default | awk '{print $NF}') \ && envsubst < /tmp/wg0.conf.template > /configs/wg0.conf.template \ && chmod 600 /configs/wg0.conf.template \ && cat /configs/wg0.conf.template -# && echo -e "[Interface]\n\ -#Address = ${wg_net}/${wg_subn}\n\ -#PrivateKey =\n\ -#PostUp = iptables -t nat -I POSTROUTING 1 -s ${wg_net}/24 -o ${out_adapt} -j MASQUERADE\n\ -#PostUp = iptables -I FORWARD -i wg0 -o wg0 -j DROP\n\ -#PreDown = iptables -t nat -D POSTROUTING -s ${wg_net}/24 -o ${out_adapt} -j MASQUERADE\n\ -#PreDown = iptables -D FORWARD -i wg0 -o wg0 -j DROP\n\ -#ListenPort = ${wg_port}\n\ -#SaveConfig = true\n\ -#DNS = ${global_dns}" > /configs/wg0.conf.template \ -# && chmod 600 /configs/wg0.conf.template # Set a healthcheck to determine the container its health HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 30108143..62b8c47c 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -98,7 +98,6 @@ ensure_installation() { # Setup WireGuard if needed if [ -z "$(ls -A /etc/wireguard)" ]; then - cat /configs/wg0.conf.template cp -a "/configs/wg0.conf.template" "/etc/wireguard/wg0.conf" echo "Setting a secure private key."