Fix nextcloud and matrix
This commit is contained in:
parent
9a4a7d742d
commit
3813989cf0
@ -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;
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user