containers/fluorite: forward ports
This commit is contained in:
parent
de7402576d
commit
5eef477e0b
1 changed files with 9 additions and 0 deletions
|
|
@ -33,6 +33,7 @@
|
|||
enableIPv6 = true;
|
||||
internalInterfaces = [ "ve-${name}" ];
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [ 50300 ];
|
||||
|
||||
services.nginx.virtualHosts."${fqdn}" = {
|
||||
useACMEHost = "lava.moe";
|
||||
|
|
@ -58,6 +59,14 @@
|
|||
config = { imports = modules; };
|
||||
specialArgs = { inherit fqdn; };
|
||||
|
||||
forwardPorts = [
|
||||
{
|
||||
containerPort = 50300;
|
||||
hostPort = 50300;
|
||||
protocol = "tcp";
|
||||
}
|
||||
];
|
||||
|
||||
bindMounts."persist" = {
|
||||
hostPath = "/persist/containers/${name}";
|
||||
mountPoint = "/persist";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue