nixos-config/profiles/servers/nextcloud.nix

20 lines
517 B
Nix
Raw Permalink Normal View History

2023-07-11 13:15:11 +04:00
{ config, pkgs, ... }: {
2020-07-31 22:00:51 +04:00
services.nextcloud = {
enable = true;
hostName = "nextcloud.balsoft.ru";
config.adminpassFile = config.secrets.nextcloud.decrypted;
2023-07-11 13:15:11 +04:00
package = pkgs.nextcloud27;
2023-09-12 01:13:04 +04:00
enableBrokenCiphersForSSE = false;
2020-07-31 22:00:51 +04:00
https = true;
};
secrets.nextcloud = {
owner = "nextcloud:nextcloud";
services = [ "nextcloud-setup" ];
};
2020-07-31 22:00:51 +04:00
services.nginx.virtualHosts."nextcloud.balsoft.ru" = {
enableACME = true;
forceSSL = true;
locations."/".proxyWebsockets = true;
};
}