change gitea container
This commit is contained in:
@@ -101,15 +101,12 @@ in
|
|||||||
autoStart = true;
|
autoStart = true;
|
||||||
ephemeral = true;
|
ephemeral = true;
|
||||||
macvlans = [ "vserver" ];
|
macvlans = [ "vserver" ];
|
||||||
# privateNetwork = true;
|
bindMounts = {
|
||||||
# hostBridge = "server";
|
"/var/lib/gitea" = {
|
||||||
# localAddress = "10.42.97.2";
|
hostPath = "/var/lib/gitea/";
|
||||||
# bindMounts = {
|
isReadOnly = false;
|
||||||
# "/var/lib/gitea" = {
|
};
|
||||||
# hostPath = "/var/lib/gitea/";
|
};
|
||||||
# isReadOnly = false;
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# bindMounts = {
|
# bindMounts = {
|
||||||
# "/var/lib/acme/gitea/" = {
|
# "/var/lib/acme/gitea/" = {
|
||||||
# hostPath = "${security.acme.certs.${domain}.directory}";
|
# hostPath = "${security.acme.certs.${domain}.directory}";
|
||||||
@@ -118,18 +115,14 @@ in
|
|||||||
# };
|
# };
|
||||||
config = { lib, config, pkgs, ... }: {
|
config = { lib, config, pkgs, ... }: {
|
||||||
networking = {
|
networking = {
|
||||||
# hostName = "gitea";
|
hostName = "gitea";
|
||||||
# interfaces.mv-vserver.useDHCP = true;
|
|
||||||
interfaces.mv-vserver = {
|
interfaces.mv-vserver = {
|
||||||
useDHCP = true;
|
useDHCP = true;
|
||||||
# ipv4.addresses = [ { address = "10.42.97.2"; prefixLength = 24; } ];
|
|
||||||
};
|
};
|
||||||
# firewall = {
|
firewall = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# allowedTCPPorts = [ 22 80 443 ];
|
allowedTCPPorts = [ 22 80 443 ];
|
||||||
# };
|
};
|
||||||
# Use systemd-resolved inside the container
|
|
||||||
# useHostResolvConf = false;
|
|
||||||
};
|
};
|
||||||
# services.resolved.enable = true;
|
# services.resolved.enable = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user