Nextcoud: new setup

This commit is contained in:
Filippo Berto 2023-12-26 11:05:46 +01:00
parent 36443cac83
commit e9a411586b
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
20 changed files with 109 additions and 124 deletions

View file

@ -2,7 +2,7 @@
age.secrets = {
nextcloud_admin_secret = { file = ../../secrets/nextcloud_admin_secret.age; owner = "nextcloud"; };
nextcloud_bucket_secret = { file = ../../secrets/nextcloud_bucket_secret.age; owner = "nextcloud"; };
# nextcloud_bucket_secret = { file = ../../secrets/nextcloud_bucket_secret.age; owner = "nextcloud"; };
};
# services.nginx.virtualHosts.${config.services.nextcloud.hostName} = {
@ -17,23 +17,24 @@
hostName = "my-nextcloud.bertof.net";
maxUploadSize = "24G";
caching.apcu = true;
datadir = "/mnt/raid/nextcloud";
config = {
trustedProxies = [ "172.23.4.159" "fd80:56c2:e21c:f9c7:5399:93be:21a9:9fa0" "fe80::3079:d8ff:feb5:7d62" ];
extraTrustedDomains = [ config.services.nextcloud.hostName "freya.local" ];
trustedProxies = [ "172.23.171.70" "baldur.zto" ];
extraTrustedDomains = [ config.services.nextcloud.hostName "freya.zto" ];
adminpassFile = config.age.secrets.nextcloud_admin_secret.path;
overwriteProtocol = "https";
objectstore.s3 = {
enable = true;
bucket = "nextcloud-storage";
autocreate = false;
key = "GK622e38479552cbbbba48fd04";
secretFile = config.age.secrets.nextcloud_bucket_secret.path;
hostname = "localhost";
port = 3900;
useSsl = false;
region = "garage";
usePathStyle = true;
};
# objectstore.s3 = {
# enable = true;
# bucket = "nextcloud-storage";
# autocreate = false;
# key = "GK622e38479552cbbbba48fd04";
# secretFile = config.age.secrets.nextcloud_bucket_secret.path;
# hostname = "localhost";
# port = 3900;
# useSsl = false;
# region = "garage";
# usePathStyle = true;
# };
};
};