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