forked from avinson/foxpass-openvpn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vpn.nomad
44 lines (41 loc) · 834 Bytes
/
vpn.nomad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Define a job
job "vpn" {
datacenters = ["us-west-1"]
type = "service"
group "vpn" {
count = 2
task "vpn" {
driver = "docker"
config {
image = "avinson/foxpass-openvpn"
port_map { vpn = 1194 }
privileged = true
}
env {
BIND_PASSWORD = "REDACTED"
DOMAIN = "mydomain"
GROUP_FILTER = "vpn"
MGMTPASS = "REDACTED"
PUSH_DNS = "false"
ROUTE_ALL_TRAFFIC = "false"
ROUTE_SUBNET = "10.1.0.0 255.255.0.0"
VPN_NET = "10.252.250.0"
}
service {
name = "vpn"
port = "vpn"
tags = ["infra"]
}
resources {
cpu = 100
memory = 64
network {
mbits = 10
port "vpn" {
static = 1194
}
}
}
}
}
}