blob: de8b5b11222aa148a57e39b2608804e5e801592c (
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
|
{
config,
lib,
pkgs,
...
}:
{
services.sftpgo = {
enable = true;
package = pkgs.sftpgo;
settings = {
httpd.bindings = lib.singleton {
port = 8080;
address = "0.0.0.0";
enable_web_client = true;
enable_web_admin = true;
};
};
};
services.caddy.virtualHosts."${config.networking.hostName}.brownbread.net".extraConfig = ''
root * /web/client
encode zstd gzip
reverse_proxy http://localhost:8080
'';
}
|