22 lines
491 B
Nix
22 lines
491 B
Nix
{ config, pkgs, ... }:
|
|
{
|
|
services.sftpgo = {
|
|
enable = true;
|
|
package = pkgs.sftpgo;
|
|
dataDir = "/var/lib/sftpgo";
|
|
settings = {
|
|
httpd.bindings = [{
|
|
port = 8080;
|
|
address = "0.0.0.0";
|
|
enable_web_client = true;
|
|
enable_web_admin = true;
|
|
}];
|
|
};
|
|
};
|
|
|
|
services.caddy.virtualHosts."${config.networking.hostName}.tdback.net".extraConfig = ''
|
|
root * /web/client
|
|
encode zstd gzip
|
|
reverse_proxy http://localhost:8080
|
|
'';
|
|
}
|