2024-11-10 17:54:08 -05:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
|
|
|
services.sftpgo = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.sftpgo;
|
|
|
|
settings = {
|
|
|
|
httpd.bindings = [{
|
|
|
|
port = 8080;
|
|
|
|
address = "0.0.0.0";
|
|
|
|
enable_web_client = true;
|
|
|
|
enable_web_admin = true;
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-11-26 21:43:36 -05:00
|
|
|
services.caddy.virtualHosts."${config.networking.hostName}.brownbread.net".extraConfig = ''
|
2024-11-10 17:54:08 -05:00
|
|
|
root * /web/client
|
|
|
|
encode zstd gzip
|
|
|
|
reverse_proxy http://localhost:8080
|
|
|
|
'';
|
|
|
|
}
|