nextcloud done
This commit is contained in:
parent
e048213cc6
commit
4c318790ac
2 changed files with 19 additions and 1 deletions
|
|
@ -29,12 +29,14 @@ in {
|
||||||
https = true;
|
https = true;
|
||||||
hostName = "files.${config.networking.domain}";
|
hostName = "files.${config.networking.domain}";
|
||||||
configureRedis = true;
|
configureRedis = true;
|
||||||
|
database.createLocally = true;
|
||||||
config = {
|
config = {
|
||||||
adminpassFile = secrets."nextcloud/admin_password".path;
|
adminpassFile = secrets."nextcloud/admin_password".path;
|
||||||
|
dbtype = "pgsql";
|
||||||
};
|
};
|
||||||
secretFile = sops.templates."nextcloud/secrets.json".path;
|
secretFile = sops.templates."nextcloud/secrets.json".path;
|
||||||
settings = {
|
settings = {
|
||||||
trusted_proxies = ["192.168.1.2"];
|
trusted_proxies = ["192.168.1.1" "127.0.0.1"];
|
||||||
maintenance_window_start = 2;
|
maintenance_window_start = 2;
|
||||||
default_phone_region = "GB";
|
default_phone_region = "GB";
|
||||||
# https://github.com/pulsejet/nextcloud-oidc-login
|
# https://github.com/pulsejet/nextcloud-oidc-login
|
||||||
|
|
@ -64,7 +66,9 @@ in {
|
||||||
oidc_login_public_key_caching_time = 604800;
|
oidc_login_public_key_caching_time = 604800;
|
||||||
oidc_login_min_time_between_jwks_requests = 10;
|
oidc_login_min_time_between_jwks_requests = 10;
|
||||||
oidc_login_well_known_caching_time = 86400;
|
oidc_login_well_known_caching_time = 86400;
|
||||||
|
datadirectory = "/mnt/storage/nextcloud";
|
||||||
};
|
};
|
||||||
|
maxUploadSize = "5G";
|
||||||
};
|
};
|
||||||
services.nginx.virtualHosts.${nextcloud.hostName} = {
|
services.nginx.virtualHosts.${nextcloud.hostName} = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,20 @@ in {
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
job_name = "prometheus";
|
||||||
|
static_configs = [
|
||||||
|
{
|
||||||
|
targets = ["localhost:${toString config.services.prometheus.exporters.postgres.port}"];
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
exporters = {
|
||||||
|
postgres = {
|
||||||
|
enable = true;
|
||||||
|
runAsLocalSuperUser = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue