From 062df4d3d0c57f63bb149f7b6b3506e9f45fa4ff Mon Sep 17 00:00:00 2001 From: Soispha Date: Fri, 13 Oct 2023 18:29:44 +0200 Subject: Feat(system/services/redirects): Build up the base to comply with the AGPL --- system/services/default.nix | 1 + system/services/redirects/default.nix | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 system/services/redirects/default.nix (limited to 'system') diff --git a/system/services/default.nix b/system/services/default.nix index 9998e43..974bb40 100644 --- a/system/services/default.nix +++ b/system/services/default.nix @@ -14,6 +14,7 @@ ./nix ./nix-sync ./openssh + ./redirects ./rust-motd ./snapper ./taskserver diff --git a/system/services/redirects/default.nix b/system/services/redirects/default.nix new file mode 100644 index 0000000..0f66e2b --- /dev/null +++ b/system/services/redirects/default.nix @@ -0,0 +1,12 @@ +{...}: { + services.nginx = { + enable = true; + virtualHosts."source.vhack.eu" = { + # Redirect all request to the codeberg source + locations."/".return = "301 https://codeberg.org/vhack.eu/nixos-server"; + + enableACME = true; + forceSSL = true; + }; + }; +} -- cgit 1.4.1