ctucx.git: nixfiles

ctucx' nixfiles

commit 0757edf43447186feb60a26312f3d8d78e5b0efc
parent 1d9b34df10329b1f27008e6aa52652aeefce1416
Author: Leah (ctucx) <git@ctu.cx>
Date: Tue, 11 Jun 2024 21:27:45 +0200

machines/trabbi/websites: remove `wifionic.de`
2 files changed, 0 insertions(+), 69 deletions(-)
M
machines/trabbi/websites/default.nix
|
1
-
D
machines/trabbi/websites/wifionic.de.nix
|
68
--------------------------------------------------------------------
diff --git a/machines/trabbi/websites/default.nix b/machines/trabbi/websites/default.nix
@@ -3,7 +3,6 @@
 {
 
   imports = [
-    ./wifionic.de.nix
     ./ctu.cx.nix
     ./bikemap.ctu.cx.nix
     ./things.ctu.cx.nix
diff --git a/machines/trabbi/websites/wifionic.de.nix b/machines/trabbi/websites/wifionic.de.nix
@@ -1,68 +0,0 @@
-{ config, pkgs, lib, ... }:
-
-let
-  version = "262";
-
-in {
-
-  dns.zones."wifionic.de" = (pkgs.dns.lib.combinators.host config.networking.primaryIP4 config.networking.primaryIP);
-
-  systemd.services.check-o2tiles = {
-    onFailure   = [ "email-notify@%i.service" ];
-    startAt     = "*-*-* 3:00:00";
-    after       = [ "network-online.target" ];
-    path        = [ pkgs.curl ];
-    script      = ''
-      curl --fail "https://dccb7552-tiles.spatialbuzz.net/tiles/o2_de-v${version}/styles/o2_de_v${version}_4g/15/17303/10472.png" 1> /dev/null;
-    '';
-    serviceConfig = {
-      Type = "oneshot";
-
-      DynamicUser             = true;
-
-      NoNewPrivileges         = true;
-      PrivateTmp              = true;
-      PrivateDevices          = true;
-
-      RestrictAddressFamilies = "AF_INET AF_INET6";
-      RestrictNamespaces      = true;
-      RestrictRealtime        = true;
-
-      ProtectSystem           = "full";
-      ProtectControlGroups    = true;
-      ProtectKernelModules    = true;
-      ProtectKernelTunables   = true;
-
-      DevicePolicy            = "closed";
-      LockPersonality         = true;
-    };
-  };
-
-
-  services.nginx = {
-    enable = true;
-    virtualHosts."wifionic.de" = {
-      enableACME = true;
-      forceSSL   = true;
-      kTLS       = true;
-      locations  = {
-        "/".root = pkgs.mobile-coverage-map;
-
-        "/vodafone-map" = {
-          proxyPass   = "https://netmap.vodafone.de/arcgis/rest/services/CoKart/netzabdeckung_mobilfunk_4x";
-          extraConfig = "proxy_set_header Accept-Encoding '';";
-        };
-
-        "/magenta-at-map" = {
-          proxyPass   = "https://app.wigeogis.com/kunden/tmobile/data/geoserver.php";
-          extraConfig = ''
-            proxy_set_header Accept-Encoding "";
-            proxy_set_header Host "app.wigeogis.com";
-          '';
-        };
-
-      };
-    };
-  };
-
-}