nixos-config/modules/nextcloud.nix

22 lines
760 B
Nix
Raw Normal View History

2020-07-31 22:00:51 +04:00
{ config, pkgs, lib, ... }:
{
services.nextcloud = {
enable = true;
hostName = "nextcloud.balsoft.ru";
config.adminpassFile = config.secrets.nextcloud.decrypted;
2020-11-22 11:41:13 +04:00
package = pkgs.nextcloud20;
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;
locations."~ ^\\/(?:build|tests|config|lib|3rdparty|templates|data)\\/".proxyWebsockets = true;
locations."~ ^\\/(?:index|remote|public|cron|core/ajax\\/update|status|ocs\\/v[12]|updater\\/.+|ocs-provider\\/.+|ocm-provider\\/.+)\\.php(?:$|\\/)".proxyWebsockets = true;
};
}