progress on nextcloud. Amost done?

This commit is contained in:
pazpi 2024-11-06 22:13:24 +01:00
parent ec54078025
commit 3259b103c1

View file

@ -57,9 +57,10 @@ in
settings = {
overwriteProtocol = "https";
defaultPhoneRegion = "IT";
default_phone_region = "IT";
trusted_proxies = [ "192.168.1.150" ];
trusted_domains = [ "cloud.${cfg.proxy.domain}" ];
maintenance_window_start = 1;
enabledPreviewProviders = [
"OC\\Preview\\BMP"
"OC\\Preview\\GIF"
@ -74,8 +75,15 @@ in
"OC\\Preview\\HEIC"
"OC\\Preview\\Movie"
];
memories = {
exiftool = "${lib.getExe pkgs.exiftool}";
vod.ffmpeg = "${lib.getExe pkgs.ffmpeg-headless}";
vod.ffprobe = "${pkgs.ffmpeg-headless}/bin/ffprobe";
};
};
phpOptions."opcache.interned_strings_buffer" = "64";
config = {
dbtype = "pgsql";
adminuser = "admin";
@ -94,6 +102,7 @@ in
# Instead of using pkgs.nextcloudXXPackages.apps,
# we'll reference the package version specified above
autoUpdateApps.enable = true;
appstoreEnable = true;
extraAppsEnable = true;
extraApps = {
inherit (config.services.nextcloud.package.packages.apps)
@ -144,10 +153,11 @@ in
import cloudflare
'';
virtualHosts."onlyoffice.${domain}".extraConfig = ''
reverse_proxy http://${host}:${toString config.services.onlyoffice.port}
import cloudflare
# Required to circumvent bug of Onlyoffice loading mixed non-https content
header_up X-Forwarded-Proto https
reverse_proxy http://${host}:${toString config.services.onlyoffice.port} {
# Required to circumvent bug of Onlyoffice loading mixed non-https content
header_up X-Forwarded-Proto https
}
'';
};
})