Add Seafile but fuck this stupid cock sucking bullshit

This commit is contained in:
Jimbo 2025-01-03 18:32:00 -05:00
parent 8061ade3d7
commit d5b44c8825
3 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,17 @@
{ lib, config, ... }:
{
services.nginx.virtualHosts."sync.${config.domains.p2}" = lib.mkIf config.services.seafile.enable {
enableACME = true;
forceSSL = true;
locations = {
"/" = {
proxyPass = "http://unix:/run/seahub/gunicorn.sock";
proxyWebsockets = true;
};
"/seafhttp" = {
proxyPass = "http://unix:/run/seafile/server.sock";
proxyWebsockets = true;
};
};
};
}