浏览代码

Add new Parm to wg-easy template. (#14)

Robert Middleswarth 3 年之前
父节点
当前提交
e415322afd
共有 2 个文件被更改,包括 9 次插入4 次删除
  1. 1 1
      stack/wireguard-easy.yml
  2. 8 3
      template/apps/wireguard-server.json

+ 1 - 1
stack/wireguard-easy.yml

@@ -9,7 +9,7 @@ services:
       # Optional:
       - PASSWORD=${PASSWORD}
       - WG_PORT=${WG_PORT}
-      - WG_DEFAULT_ADDRESS=10.8.0.x
+      - WG_DEFAULT_ADDRESS=${WG_DEFAULT_ADDRESS}
       - WG_DEFAULT_DNS=${WG_DEFAULT_DNS}
       - WG_ALLOWED_IPS=${WG_ALLOWED_IPS}
       

+ 8 - 3
template/apps/wireguard-server.json

@@ -28,9 +28,14 @@
 			"name": "WG_DEFAULT_DNS"
 		},
 		{
-			"default": "0.0.0.0/0, ::/0",
-			"label": "WG_ALLOWED_IPS",
-			"name": "WG_ALLOWED_IPS"
+			"default": "10.8.0.x",
+			"label": "WG_DEFAULT_ADDRESS",
+			"name": "WG_DEFAULT_ADDRESS"
+                },
+                {
+                        "default": "0.0.0.0/0, ::/0",
+                        "label": "WG_ALLOWED_IPS",
+                        "name": "WG_ALLOWED_IPS"
 		}
 	],
 	"image64": "weejewel/wg-easy:latest",