services: nextcloud fix https acme

This commit is contained in:
Kabbone 2023-01-03 16:57:39 +01:00
parent 1a41b8ceb5
commit 0d7adb3563
Signed by: Kabbone
SSH Key Fingerprint: SHA256:A5zPB5I6u5V78V51c362BBdCwhDhfDUVbt7NfKdjWBY

View File

@ -1,11 +1,12 @@
{ pkgs, ... }:
{ config, pkgs, ... }:
{
services.nextcloud = {
enable = true;
hostName = "cloud2.kabtop.de";
https = true;
package = pkgs.nextcloud25;
enableBrokenCiphersForSSE = false;
config = {
dbtype = "pgsql";
dbuser = "nextcloud";
@ -20,13 +21,19 @@
phpOptions = {
"opcache.interned_strings_buffer" = "16";
};
#phpExtraExtensions = ;
#extraApps = with pkgs.nextcloud25Packages.apps; {
# inherit mail news contacts;
#};
#autoUpdateApps.enable = true;
};
services.nginx = {
enable = true;
virtualHosts = {
"${config.services.nextcloud.hostName}" = {
enableACME = true;
forceSSL = true;
};
};
};
age.secrets."services/nextcloud/dbpassFile" = {
file = ../../../secrets/services/nextcloud/dbpassFile.age;
owner = "nextcloud";