Marisa:added gitea service
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
{config, ...}:
|
||||
{config, pkgs, ...}:
|
||||
{
|
||||
networking = {
|
||||
hostName = "Marisa";
|
||||
firewall.allowedTCPPorts = [ 22 80 ];
|
||||
firewall = {
|
||||
allowedTCPPorts = [ 22 80 8000 6060 5001 ];
|
||||
allowedUDPPorts = [ 17840 ];
|
||||
};
|
||||
wireless = {
|
||||
enable = false;
|
||||
iwd.enable = true;
|
||||
@@ -16,6 +19,22 @@
|
||||
} ];
|
||||
};
|
||||
};
|
||||
wireguard.interfaces.wg0 = {
|
||||
ips = [ "100.0.0.2/24" ];
|
||||
listenPort = 17840;
|
||||
# postSetup = "${pkgs.iproute}/bin/ip route add weirdnatto.in via 192.168.0.1";
|
||||
# postShutdown = "${pkgs.iproute}/bin/ip route del weirdnatto.in via 192.168.0.1";
|
||||
privateKeyFile = "/var/secrets/wg";
|
||||
peers = [
|
||||
{
|
||||
#Oracle VM1
|
||||
publicKey = "z0Y2VNEWcyVQVSqRHiwmiJ5/0MgSPM+HZfEcwIccSxM=";
|
||||
allowedIPs = [ "100.0.0.0/24" ];
|
||||
endpoint = "140.238.230.155:17840";
|
||||
persistentKeepalive = 25;
|
||||
}
|
||||
];
|
||||
};
|
||||
defaultGateway = "192.168.0.1";
|
||||
nameservers = [ "1.1.1.1" "8.8.8.8" ];
|
||||
};
|
||||
|
Reference in New Issue
Block a user