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