summary refs log tree commit diff
path: root/host/Spacebar-nginx/nginx-hosts/fosscord.com/root.nix
blob: 7efa326dbe3ce803e25ee23829331ef13b9994e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ lib, config }: {  
  locations = {
    "/" = {
      extraConfig =
        ''
        return 301 https://spacebar.chat$request_uri;
        '';
    };
    ".well-known/matrix/server" = {
      root = "/var/lib/matrix";
    };
    "^~ /.well-known/acme-challenge/" = {
      root = "/var/lib/acme/acme-challenge";
    };
  };
}