Fix nextcloud and matrix

This commit is contained in:
Alexander Bantyev 2020-07-28 13:02:32 +03:00
parent 9a4a7d742d
commit 3813989cf0
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
4 changed files with 11 additions and 3 deletions

View File

@ -84,9 +84,7 @@ in {
};
};
localDnsResolver = false;
certificateScheme = 1;
certificateFile = builtins.toFile "balsoft.crt" config.secrets.ssl.cert;
keyFile = builtins.toFile "balsoft.key" config.secrets.ssl.priv;
certificateScheme = 3;
enableImap = true;
enableImapSsl = true;
virusScanning = false;

View File

@ -13,6 +13,10 @@
root = "/var/lib/balsoft.ru";
index = "index.txt";
};
locations."/.well-known".proxyPass = "https://localhost:13748";
locations."/_matrix" = {
proxyPass = "https://localhost:13748";
};
enableACME = true;
addSSL = true;
};

View File

@ -34,6 +34,8 @@ in {
nerdfonts = nur.balsoft.pkgs.roboto-mono-nerd;
mobile-broadband-provider-info =
super.mobile-broadband-provider-info.overrideAttrs (oa: {
src = inputs.mobile-broadband-provider-info;

View File

@ -56,11 +56,15 @@
hostName = "nextcloud.balsoft.ru";
config.adminpassFile = "/home/balsoft/nextcloud-admin";
package = pkgs.nextcloud19;
https = true;
};
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;
};
}