progress on nextcloud. Amost done?
This commit is contained in:
parent
ec54078025
commit
3259b103c1
1 changed files with 14 additions and 4 deletions
|
|
@ -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,7 +75,14 @@ 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";
|
||||
|
|
@ -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
|
||||
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
|
||||
}
|
||||
'';
|
||||
};
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue