diff options
author | Soispha <soispha@vhack.eu> | 2023-10-13 18:29:44 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-10-14 16:34:10 +0200 |
commit | 062df4d3d0c57f63bb149f7b6b3506e9f45fa4ff (patch) | |
tree | f6db6033d5c2269b5d14af7d63844cfac0f50745 | |
parent | chore(version): v0.15.1 (diff) | |
download | nixos-server-062df4d3d0c57f63bb149f7b6b3506e9f45fa4ff.tar.gz nixos-server-062df4d3d0c57f63bb149f7b6b3506e9f45fa4ff.zip |
Feat(system/services/redirects): Build up the base to comply with the AGPL
-rw-r--r-- | system/services/default.nix | 1 | ||||
-rw-r--r-- | system/services/redirects/default.nix | 12 |
2 files changed, 13 insertions, 0 deletions
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; + }; + }; +} |