blob: 95d8055f1dda8f408bb39d04ef7036112923fb8c (
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
|
{ pkgs, ... }:
{
catbus-web-ui = pkgs.callPackage ./catbus-web-ui.nix {};
https = site: site // {
forceSSL = true;
enableACME = true;
};
static = root: {
locations = {
"/" = {
root = root;
};
};
};
proxyACME = remoteHost: {
locations = {
"/.well-known/acme-challenge/" = {
proxyPass = "http://${remoteHost}";
};
};
};
proxySocket = socketPath: {
locations = {
"/" = {
proxyPass = "http://unix:/${socketPath}";
};
};
};
}
|