From 8e35fe9b2b5d3421f605cc94166806cebdbe27d7 Mon Sep 17 00:00:00 2001 From: Constantin Gierczak--Galle Date: Sat, 7 Dec 2024 13:10:13 +0100 Subject: [PATCH] feat(dns01): bootstrap DNS --- machines/dns01/lab.dgnum.eu.nix | 4 +++- machines/homebox01/homebox.nix | 2 +- machines/photo01/immich.nix | 2 +- machines/photo01/photoprism.nix | 4 ++-- meta/network.nix | 7 +++++++ 5 files changed, 14 insertions(+), 5 deletions(-) diff --git a/machines/dns01/lab.dgnum.eu.nix b/machines/dns01/lab.dgnum.eu.nix index 054ae9d..1950817 100644 --- a/machines/dns01/lab.dgnum.eu.nix +++ b/machines/dns01/lab.dgnum.eu.nix @@ -25,10 +25,12 @@ with dns.lib.combinators; photoprism = host "129.199.146.101" null; immich = host "129.199.146.101" null; + homebox = host "129.199.146.102" null; + # Nameservers ns01 = host "45.13.104.26" "2a0e:e701:1120:1000:ffff::45.13.104.26"; - # *.infra.beta.dgnum.eu + # *.infra.lab.dgnum.eu infra = { subdomains = mapAttrs' ( host: diff --git a/machines/homebox01/homebox.nix b/machines/homebox01/homebox.nix index 566554c..eaf5ee4 100644 --- a/machines/homebox01/homebox.nix +++ b/machines/homebox01/homebox.nix @@ -5,7 +5,7 @@ HBOX_OPTIONS_ALLOW_REGISTRATION = "false"; }; }; - services.nginx.virtualHosts."homebox.cgiga.fr" = { + services.nginx.virtualHosts."homebox.lab.dgnum.eu" = { enableACME = true; forceSSL = true; serverAliases = [ ]; diff --git a/machines/photo01/immich.nix b/machines/photo01/immich.nix index 3d1f0c9..81cfd7c 100644 --- a/machines/photo01/immich.nix +++ b/machines/photo01/immich.nix @@ -7,7 +7,7 @@ host = "localhost"; }; - services.nginx.virtualHosts."immich.cgiga.fr" = { + services.nginx.virtualHosts."immich.lab.dgnum.eu" = { enableACME = true; forceSSL = true; serverAliases = [ ]; diff --git a/machines/photo01/photoprism.nix b/machines/photo01/photoprism.nix index 644e406..7650ba9 100644 --- a/machines/photo01/photoprism.nix +++ b/machines/photo01/photoprism.nix @@ -8,7 +8,7 @@ settings = { PHOTOPRISM_DEFAULT_LOCALE = "fr"; PHOTOPRISM_ADMIN_USERNAME = "admin"; - PHOHOPRISM_SITE_URL = "https://photoprism.cgiga.fr"; + PHOHOPRISM_SITE_URL = "https://photoprism.lab.dgnum.eu"; PHOTOPRISM_SITE_CAPTION = "PhotoPrism"; # DB access config @@ -41,7 +41,7 @@ ]; }; - nginx.virtualHosts."photoprism.cgiga.fr" = { + nginx.virtualHosts."photoprism.lab.dgnum.eu" = { enableACME = true; forceSSL = true; serverAliases = [ ]; diff --git a/meta/network.nix b/meta/network.nix index 9c4c3a1..4a2657e 100644 --- a/meta/network.nix +++ b/meta/network.nix @@ -9,6 +9,13 @@ } ]; + ipv4 = [ + { + address = "45.13.104.26"; + prefixLength = 32; + } + ]; + gateways = [ "2a0e:e701:1120:1000::1" ]; dns = [ "2a0e:e701:1120:1000::f:1" ]; };