From 3bf20808b5f2ca8fba4bdc6ae542b780f30588e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Mon, 8 Apr 2024 23:38:49 -0300 Subject: [PATCH 1/2] nextcloud: fix ssl certificates --- hosts/phantom/nextcloud.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/phantom/nextcloud.nix b/hosts/phantom/nextcloud.nix index 52421f2..5bddece 100644 --- a/hosts/phantom/nextcloud.nix +++ b/hosts/phantom/nextcloud.nix @@ -9,6 +9,11 @@ }; }; + services.nginx.virtualHosts.${config.services.nextcloud.hostName} = { + forceSSL = true; + enableACME = true; + }; + age = { secrets.phantom-nextcloud = { file = ../../secrets/phantom-nextcloud.age; From bf382371cb4c95601817768373aa239f0f062f2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Tue, 9 Apr 2024 00:42:40 -0300 Subject: [PATCH 2/2] phantom: add a top level domain page --- hosts/phantom/default.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/hosts/phantom/default.nix b/hosts/phantom/default.nix index 782b783..9cb639f 100644 --- a/hosts/phantom/default.nix +++ b/hosts/phantom/default.nix @@ -15,6 +15,24 @@ ./forgejo.nix ]; + services.nginx.virtualHosts."lelgenio.xyz" = { + enableACME = true; + forceSSL = true; + root = pkgs.runCommand "www-dir" { } '' + mkdir -p $out + cat > $out/index.html < + + +

+ Nothing to see here! +

+ + + EOF + ''; + }; + # # Enable networking # networking.networkmanager.enable = true; # Set your time zone.