Clean Nextcloud config
This commit is contained in:
parent
8c08623c0a
commit
2334cfdee6
1 changed files with 24 additions and 23 deletions
|
@ -6,7 +6,8 @@
|
|||
];
|
||||
networking.firewall.allowedUDPPorts = [ 443 ];
|
||||
|
||||
services.nextcloud = {
|
||||
services = {
|
||||
nextcloud = {
|
||||
package = pkgs.nextcloud30;
|
||||
enable = true;
|
||||
hostName = "nextcloud.vsinerva.fi";
|
||||
|
@ -18,19 +19,19 @@
|
|||
};
|
||||
settings = {
|
||||
overwriteprotocol = "https";
|
||||
maintenancce_window_start = 1;
|
||||
opcache.interned_strings_buffer = 32;
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts = {
|
||||
${config.services.nextcloud.hostName} = {
|
||||
nginx = {
|
||||
recommendedGzipSettings = true;
|
||||
|
||||
virtualHosts.${config.services.nextcloud.hostName} = {
|
||||
forceSSL = true;
|
||||
kTLS = true;
|
||||
sslCertificate = "/var/lib/nextcloud/nextcloud_fullchain.pem";
|
||||
sslCertificateKey = "/var/lib/nextcloud/nextcloud_privkey.pem";
|
||||
locations = {
|
||||
"/".proxyWebsockets = true;
|
||||
"~ ^\/nextcloud\/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+|.+\/richdocumentscode\/proxy)\.php(?:$|\/)" =
|
||||
{ };
|
||||
sslCertificate = "/var/lib/nextcloud/fullchain.pem";
|
||||
sslCertificateKey = "/var/lib/nextcloud/privkey.pem";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue