Vpn : Enable forwards.

This commit is contained in:
Dmitry Voronin 2024-06-24 14:15:46 +03:00
parent 03500126f8
commit 5daa06db63
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
3 changed files with 10 additions and 2 deletions

View file

@ -26,8 +26,8 @@ in {
# protocol = "tcp";
# } {
{
containerPort = 443;
hostPort = 443;
containerPort = cfg.port;
hostPort = cfg.port;
protocol = "tcp";
}
];

View file

@ -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";

View file

@ -179,6 +179,7 @@
};
proxy = {
address = "10.1.0.2";
port = 443;
storage = "${storage}/proxy";
};
postgres = {