summary refs log tree commit diff stats
path: root/system/services/redirects/default.nix
blob: 0f66e2bd94898f38551b75b6fffe5061aa82808a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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;
    };
  };
}