blob: 35cd9c3291db0b3e7f9498746d1065560f4b8a33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{ inputs, ... }:
let
website = inputs.website;
in
{
imports = [
./git.nix
];
networking.firewall.allowedTCPPorts = [
80
443
];
services.caddy = {
enable = true;
virtualHosts."oxapentane.com" = {
serverAliases = [ "www.oxapentane.com" ];
extraConfig = ''
# conduit
@matrix {
path /.well-known/matrix/*
path /_matrix/*
}
route {
header /.well-known/matrix/* Access-Control-Allow-Origin *
respond @matrix "This Matrix homeserver has been retired" 410
# file server
file_server {
root ${website}
index index.html
}
}
'';
};
virtualHosts."auth.oxapentane.com".extraConfig = ''
respond "Temporary unavailable due to maintenance" 503
'';
virtualHosts."immich.oxapentane.com".extraConfig = ''
respond "Temporary unavailable due to maintenance" 503
'';
virtualHosts."news.oxapentane.com".extraConfig = ''
respond "Temporary unavailable due to maintenance" 503
'';
virtualHosts."music.oxapentane.com".extraConfig = ''
respond "Temporary unavailable due to maintenance" 503
'';
};
}
|