change to server bridge
This commit is contained in:
@@ -4,6 +4,7 @@ let
|
|||||||
ip = "10.42.97.3";
|
ip = "10.42.97.3";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
users.users.gitea = {
|
users.users.gitea = {
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
uid = 990;
|
uid = 990;
|
||||||
@@ -98,7 +99,9 @@ in
|
|||||||
|
|
||||||
containers.gitea = {
|
containers.gitea = {
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
macvlans = [ "lan" ];
|
privateNetwork = true;
|
||||||
|
hostBridge = "brserver";
|
||||||
|
localAddress = "10.42.97.2/24";
|
||||||
bindMounts = {
|
bindMounts = {
|
||||||
"/var/lib/gitea" = {
|
"/var/lib/gitea" = {
|
||||||
hostPath = "/var/lib/gitea/";
|
hostPath = "/var/lib/gitea/";
|
||||||
@@ -156,7 +159,7 @@ in
|
|||||||
allowedTCPPorts = [ 22 80 443 ];
|
allowedTCPPorts = [ 22 80 443 ];
|
||||||
};
|
};
|
||||||
# Use systemd-resolved inside the container
|
# Use systemd-resolved inside the container
|
||||||
useHostResolvConf = lib.mkForce false;
|
useHostResolvConf = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.resolved.enable = true;
|
services.resolved.enable = true;
|
||||||
|
|||||||
@@ -30,6 +30,10 @@
|
|||||||
id = 101;
|
id = 101;
|
||||||
interface = "enp5s0";
|
interface = "enp5s0";
|
||||||
};
|
};
|
||||||
|
server = {
|
||||||
|
id = 97;
|
||||||
|
interface = "enp5s0";
|
||||||
|
};
|
||||||
multimedia = {
|
multimedia = {
|
||||||
id = 99;
|
id = 99;
|
||||||
interface = "enp5s0";
|
interface = "enp5s0";
|
||||||
@@ -44,6 +48,12 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nat = {
|
||||||
|
enable = true;
|
||||||
|
internalInterfaces = [ "server" ];
|
||||||
|
externalInterface = "brserver";
|
||||||
|
};
|
||||||
|
|
||||||
interfaces = {
|
interfaces = {
|
||||||
# Don't request DHCP on the physical interfaces
|
# Don't request DHCP on the physical interfaces
|
||||||
lan.useDHCP = false;
|
lan.useDHCP = false;
|
||||||
@@ -58,12 +68,12 @@
|
|||||||
prefixLength = 24;
|
prefixLength = 24;
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
# server = {
|
server = {
|
||||||
# ipv4.addresses = [{
|
ipv4.addresses = [{
|
||||||
# address = "10.42.97.1";
|
address = "10.42.97.1";
|
||||||
# prefixLength = 24;
|
prefixLength = 24;
|
||||||
# }];
|
}];
|
||||||
# };
|
};
|
||||||
infrastructure = {
|
infrastructure = {
|
||||||
ipv4.addresses = [{
|
ipv4.addresses = [{
|
||||||
address = "10.42.101.1";
|
address = "10.42.101.1";
|
||||||
|
|||||||
Reference in New Issue
Block a user