From 5bfd3b313ab98ab992027ec2782009cad4a0b0bc Mon Sep 17 00:00:00 2001 From: Vincent Vu <172068404+rubixvi@users.noreply.github.com> Date: Sat, 27 Dec 2025 19:04:38 +1100 Subject: [PATCH 1/2] fix(wg-easy): Update environment variables in docker-compose.yml Replaced WireGuard environment variables with new INIT variables for wg-easy. --- blueprints/wg-easy/docker-compose.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/blueprints/wg-easy/docker-compose.yml b/blueprints/wg-easy/docker-compose.yml index 1161bb123..ed90b1060 100644 --- a/blueprints/wg-easy/docker-compose.yml +++ b/blueprints/wg-easy/docker-compose.yml @@ -6,15 +6,11 @@ services: image: ghcr.io/wg-easy/wg-easy:15 restart: unless-stopped environment: - - WG_HOST=${WIREGUARD_HOST} - - PASSWORD=${WIREGUARD_PASSWORD} - - WG_PORT=51820 - - PORT=51821 - - WG_MTU=1280 - - WG_DEFAULT_DNS=1.1.1.1,8.8.8.8 - - WG_ALLOWED_IPS=0.0.0.0/0 - - WG_POST_UP=iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE; iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT; - - WG_POST_DOWN=iptables -t nat -D POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE; iptables -D FORWARD -i wg0 -j ACCEPT; iptables -D FORWARD -o wg0 -j ACCEPT; + - INIT_ENABLED=true + - INIT_HOST=${INIT_HOST} + - INIT_PORT=51820 + - INIT_USERNAME=${INIT_USERNAME} + - INIT_PASSWORD=${INIT_PASSWORD} volumes: - etc_wireguard:/etc/wireguard - /lib/modules:/lib/modules:ro From d5e2b212d244884a0a4d2191baacd42dcbdefd2a Mon Sep 17 00:00:00 2001 From: Vincent Vu <172068404+rubixvi@users.noreply.github.com> Date: Sat, 27 Dec 2025 19:08:02 +1100 Subject: [PATCH 2/2] Add initialization parameters to template.toml --- blueprints/wg-easy/template.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/blueprints/wg-easy/template.toml b/blueprints/wg-easy/template.toml index b5d716b17..548c791a3 100644 --- a/blueprints/wg-easy/template.toml +++ b/blueprints/wg-easy/template.toml @@ -9,5 +9,6 @@ port = 51821 host = "${main_domain}" [config.env] -WIREGUARD_HOST = "${main_domain}" -WIREGUARD_PASSWORD = "${wg_password}" +INIT_HOST = "${main_domain}" +INIT_USERNAME = "wg-admin" +INIT_PASSWORD = "${wg_password}"