Fix nextcloud and matrix
This commit is contained in:
parent
9a4a7d742d
commit
3813989cf0
@ -84,9 +84,7 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
localDnsResolver = false;
|
localDnsResolver = false;
|
||||||
certificateScheme = 1;
|
certificateScheme = 3;
|
||||||
certificateFile = builtins.toFile "balsoft.crt" config.secrets.ssl.cert;
|
|
||||||
keyFile = builtins.toFile "balsoft.key" config.secrets.ssl.priv;
|
|
||||||
enableImap = true;
|
enableImap = true;
|
||||||
enableImapSsl = true;
|
enableImapSsl = true;
|
||||||
virusScanning = false;
|
virusScanning = false;
|
||||||
|
@ -13,6 +13,10 @@
|
|||||||
root = "/var/lib/balsoft.ru";
|
root = "/var/lib/balsoft.ru";
|
||||||
index = "index.txt";
|
index = "index.txt";
|
||||||
};
|
};
|
||||||
|
locations."/.well-known".proxyPass = "https://localhost:13748";
|
||||||
|
locations."/_matrix" = {
|
||||||
|
proxyPass = "https://localhost:13748";
|
||||||
|
};
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
addSSL = true;
|
addSSL = true;
|
||||||
};
|
};
|
||||||
|
@ -34,6 +34,8 @@ in {
|
|||||||
|
|
||||||
nerdfonts = nur.balsoft.pkgs.roboto-mono-nerd;
|
nerdfonts = nur.balsoft.pkgs.roboto-mono-nerd;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
mobile-broadband-provider-info =
|
mobile-broadband-provider-info =
|
||||||
super.mobile-broadband-provider-info.overrideAttrs (oa: {
|
super.mobile-broadband-provider-info.overrideAttrs (oa: {
|
||||||
src = inputs.mobile-broadband-provider-info;
|
src = inputs.mobile-broadband-provider-info;
|
||||||
|
@ -56,11 +56,15 @@
|
|||||||
hostName = "nextcloud.balsoft.ru";
|
hostName = "nextcloud.balsoft.ru";
|
||||||
config.adminpassFile = "/home/balsoft/nextcloud-admin";
|
config.adminpassFile = "/home/balsoft/nextcloud-admin";
|
||||||
package = pkgs.nextcloud19;
|
package = pkgs.nextcloud19;
|
||||||
|
https = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."nextcloud.balsoft.ru" = {
|
services.nginx.virtualHosts."nextcloud.balsoft.ru" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = 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