From 501e7feaef8d8b93a507193b1ea1ab97a899de21 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Fri, 2 Feb 2024 16:40:47 +0100 Subject: Remove gemini --- machines/srv3/.configuration.nix.swp | Bin 24576 -> 0 bytes machines/srv3/configuration.nix | 36 ++--------------------------------- 2 files changed, 2 insertions(+), 34 deletions(-) delete mode 100644 machines/srv3/.configuration.nix.swp (limited to 'machines') diff --git a/machines/srv3/.configuration.nix.swp b/machines/srv3/.configuration.nix.swp deleted file mode 100644 index 9555fb3..0000000 Binary files a/machines/srv3/.configuration.nix.swp and /dev/null differ diff --git a/machines/srv3/configuration.nix b/machines/srv3/configuration.nix index f2ee31d..60fe2ef 100644 --- a/machines/srv3/configuration.nix +++ b/machines/srv3/configuration.nix @@ -70,7 +70,7 @@ in services.sshguard = { enable = true; whitelist = [ - "192.168.0.0/18" + "192.168.1.0/24" ]; }; @@ -113,16 +113,6 @@ in forceSSL = true; root = "${www}/pics.niedzwiedzinski.cyou"; }; - "rss.srv3.niedzwiedzinski.cyou" = { - enableACME = true; - forceSSL = true; - extraConfig = '' - modsecurity_rules ' - SecRuleEngine On - SecRule ARGS:u "@rx life[-_]*hack(s)?" "id:1234,deny,status:403" - '; - ''; - }; "tmp.niedzwiedzinski.cyou" = { enableACME = true; addSSL = true; @@ -160,31 +150,9 @@ in security.acme.defaults.email = "pniedzwiedzinski19@gmail.com"; security.acme.acceptTerms = true; - networking.firewall.allowedTCPPorts = [ 53 80 443 config.services.molly-brown.settings.Port ]; + networking.firewall.allowedTCPPorts = [ 53 80 443 ]; networking.firewall.allowedUDPPorts = [ 53 ]; - services.molly-brown = { - hostName = "niedzwiedzinski.cyou"; - enable = true; - certPath = "/var/lib/acme/niedzwiedzinski.cyou/cert.pem"; - keyPath = "/var/lib/acme/niedzwiedzinski.cyou/key.pem"; - docBase = "${www}/niedzwiedzinski.cyou"; - }; - - systemd = { - services.molly-brown.serviceConfig.SupplementaryGroups = [ config.security.acme.certs."niedzwiedzinski.cyou".group ]; - }; - - services.rss-bridge = { - enable = true; - virtualHost = "rss.srv3.niedzwiedzinski.cyou"; - whitelist = [ - "Instagram" - "Soundcloud" - "Facebook" - ]; - }; - users = { users = { pn = { -- cgit 1.4.1