chore: backup infrastructure configurations [skip ci]

This commit is contained in:
github-actions[bot]
2025-11-24 15:25:01 +00:00
parent a5e11de6ed
commit 26a7d1eee1
31 changed files with 1016 additions and 306 deletions

View File

@@ -2,27 +2,31 @@ job "wireguard" {
region = "global"
datacenters = ["dc1"]
type = "service"
constraint {
attribute = "${attr.cpu.arch}"
operator = "regexp"
value = "amd64"
}
// constraint {
// attribute = "${attr.cpu.arch}"
// operator = "regexp"
// value = "arm"
// }
group "wireguard" {
count = 1
task "wireguard" {
driver = "docker"
config {
image = "ghcr.io/wg-easy/wg-easy"
ports = ["vpn","vpn_ui"]
image = "lscr.io/linuxserver/wireguard"
ports = ["vpn"]
volumes = [
"/mnt/Public/config/wireguard:/etc/wireguard",
"/mnt/Public/config/wireguard:/config",
"/lib/modules:/lib/modules"
]
cap_add = ["NET_ADMIN","SYS_MODULE"]
// network_mode = "host"
// network_mode = "container:gocast-${NOMAD_ALLOC_ID}"
sysctl = {
"net.ipv4.conf.all.src_valid_mark"="1"
"net.ipv4.ip_forward"="1"
}
}
@@ -30,18 +34,20 @@ constraint {
TZ = "EST5EDT"
PUID = 1000
PGID = 1000
WG_HOST="wireguard.fbleagh.duckdns.org"
WG_PORT=51820
PORT=51821
WEBUI_HOST="0.0.0.0"
WG_ALLOWED_IPS="0.0.0.0/0"
UI_TRAFFIC_STATS="true"
UI_CHART_TYPE=1
WG_DEFAULT_DNS="192.168.4.36, 8.8.8.8"
SERVERURL="wireguard.fbleagh.duckdns.org"
SERVERPORT=51820
PEERS="StuPhone,SurfaceGo,Surface,SurfaceGo3"
PEERDNS="192.168.1.250,192.168.1.1,1.1.1.1"
// INTERNAL_SUBNET= "192.168.1.0"
ALLOWEDIPS="0.0.0.0/0"
}
service {
name = "${TASKGROUP}"
port = "vpn"
tags = ["enable_gocast",
"gocast_vip=192.168.1.241/32",
"gocast_nat=tcp:51820:51820",
"gocast_nat=udp:51820:51820"]
}
resources {
@@ -55,11 +61,6 @@ constraint {
static = 51820
to = 51820
}
port "vpn_ui" {
static = 51821
to = 51821
}
}
}
}