We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6ca1b03 + faf0d79 commit 1b63f86Copy full SHA for 1b63f86
.templates/wireguard/directoryfix.sh
@@ -0,0 +1,9 @@
1
+WG_CONF_TEMPLATE_PATH=./.templates/wireguard/wg0.conf
2
+WG_CONF_DEST_PATH=./services/wireguard/config
3
+
4
+if [[ ! -f $WG_CONF_TEMPLATE_PATH ]]; then
5
+ echo "[Wireguard] Warning: $WG_CONF_TEMPLATE_PATH does not exist."
6
+ else
7
+ [ -d $WG_CONF_DEST_PATH ] || mkdir -p $WG_CONF_DEST_PATH
8
+ cp -r $WG_CONF_TEMPLATE_PATH $WG_CONF_DEST_PATH
9
+fi
services/wireguard/service.yml renamed to .templates/wireguard/service.yml
@@ -15,7 +15,7 @@
15
- PEERDNS=auto #optional
16
- INTERNAL_SUBNET=100.64.0.0/24 #optional
17
volumes:
18
- - ./volumes/wireguard/config:/config
+ - ./services/wireguard/config:/config
19
- /lib/modules:/lib/modules
20
ports:
21
- 51820:51820/udp
.templates/wireguard/wg0.conf
volumes/wireguard/wg0.conf
0 commit comments