wireguard: fix vpn

This commit is contained in:
tylen 2025-05-31 23:12:24 +03:00
parent e25f429d6a
commit ffb0d3f8d9
3 changed files with 12 additions and 9 deletions

View File

@ -74,13 +74,6 @@ services:
<<: *vm-media-100-55
<<: *defaultServiceValues
- name: "kavita"
ports:
- 12790
host:
<<: *vm-media-100-55
<<: *defaultServiceValues
# ================================
# vm-tools-100-65
# ================================
@ -149,7 +142,7 @@ services:
- name: "wireguard"
ports:
- 51820
- 5182
- 51821
host:
<<: *vm-network-100-75
<<: *defaultServiceValues

View File

@ -1 +1,5 @@
CONFIG_PATH="/home/vm-user/remote-apps/wireguard/etc"
CONFIG_PATH="/home/vm-user/remote-apps/wireguard/etc"
WG_ALLOWED_IPS=0.0.0.0/0
WG_DEFAULT_ADDRESS=192.168.99.x
WG_DEFAULT_DNS=192.168.100.96
WG_DEVICE=eth0

View File

@ -5,6 +5,12 @@ services:
environment:
- PASSWORD_HASH=$$2a$$12$$OJUgCywoc/JuPvTO4hOzi.6toYnROQWdqYxnYCf5FSw2WSeygQF9K
- WG_HOST=wireguard.davydovcloud.com
- WG_DEVICE=${WG_DEVICE}
- WG_ALLOWED_IPS=${WG_ALLOWED_IPS}
- WG_DEFAULT_DNS=${WG_DEFAULT_DNS}
- WG_DEFAULT_ADDRESS=${WG_DEFAULT_ADDRESS}
- WG_PERSISTENT_KEEPALIVE=25
- UI_TRAFFIC_STATS=true
- PEERDNS=auto
volumes:
- ${CONFIG_PATH}:/etc/wireguard