fix: nextcloud!

This commit is contained in:
Ahwx 2024-07-17 03:01:18 +02:00
parent 5f2626ac1e
commit 2093da9d90

View file

@ -1,22 +1,31 @@
{ config, ... }:
{
security.acme = {
acceptTerms = true;
preliminarySelfsigned = false;
defaults = {
email = "ahwx@ahwx.org";
};
};
services.nextcloud = {
enable = true;
home = "/home/liv/nextcloud";
home = "/var/nextcloud/home";
https = true;
configureRedis = true; # caching
configureRedis = false; # caching
maxUploadSize = "10G";
hostName = "cloud.liv.town";
config = {
adminuser = "liv";
adminpassFile = "/var/nextcloud/AdminPass";
};
settings = {
trusted_domains = [
"cloud.liv.town"
];
};
extraOptions.enabledPreviewProviders = [
enabledPreviewProviders = [
"OC\\Preview\\BMP"
"OC\\Preview\\GIF"
"OC\\Preview\\JPEG"
@ -30,11 +39,21 @@
"OC\\Preview\\HEIC"
];
};
};
security.acme = {
acceptTerms = true;
certs = {
${config.services.nextcloud.hostName}.email = "ahwx@ahwx.org";
services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts.${config.services.nextcloud.hostName} = {
enableACME = true;
addSSL = true;
locations."/" = {
proxyPass = "http://localhost:8080";
proxyWebsockets = true;
};
};
};
}