Vpn : Enable forwards.
This commit is contained in:
parent
03500126f8
commit
5daa06db63
|
@ -26,8 +26,8 @@ in {
|
|||
# protocol = "tcp";
|
||||
# } {
|
||||
{
|
||||
containerPort = 443;
|
||||
hostPort = 443;
|
||||
containerPort = cfg.port;
|
||||
hostPort = cfg.port;
|
||||
protocol = "tcp";
|
||||
}
|
||||
];
|
||||
|
|
|
@ -11,6 +11,13 @@ in {
|
|||
};
|
||||
|
||||
containers.vpn = container.mkContainer cfg {
|
||||
forwardPorts = [
|
||||
{
|
||||
containerPort = cfg.port;
|
||||
hostPort = cfg.port;
|
||||
protocol = "udp";
|
||||
}
|
||||
];
|
||||
bindMounts = {
|
||||
"/var/lib/wireguard" = {
|
||||
hostPath = "${cfg.storage}/data";
|
||||
|
|
|
@ -179,6 +179,7 @@
|
|||
};
|
||||
proxy = {
|
||||
address = "10.1.0.2";
|
||||
port = 443;
|
||||
storage = "${storage}/proxy";
|
||||
};
|
||||
postgres = {
|
||||
|
|
Loading…
Reference in a new issue