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 = {
|
settings = {
|
||||||
overwriteProtocol = "https";
|
overwriteProtocol = "https";
|
||||||
defaultPhoneRegion = "IT";
|
default_phone_region = "IT";
|
||||||
trusted_proxies = [ "192.168.1.150" ];
|
trusted_proxies = [ "192.168.1.150" ];
|
||||||
trusted_domains = [ "cloud.${cfg.proxy.domain}" ];
|
trusted_domains = [ "cloud.${cfg.proxy.domain}" ];
|
||||||
|
maintenance_window_start = 1;
|
||||||
enabledPreviewProviders = [
|
enabledPreviewProviders = [
|
||||||
"OC\\Preview\\BMP"
|
"OC\\Preview\\BMP"
|
||||||
"OC\\Preview\\GIF"
|
"OC\\Preview\\GIF"
|
||||||
|
|
@ -74,7 +75,14 @@ in
|
||||||
"OC\\Preview\\HEIC"
|
"OC\\Preview\\HEIC"
|
||||||
"OC\\Preview\\Movie"
|
"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 = {
|
config = {
|
||||||
dbtype = "pgsql";
|
dbtype = "pgsql";
|
||||||
|
|
@ -94,6 +102,7 @@ in
|
||||||
# Instead of using pkgs.nextcloudXXPackages.apps,
|
# Instead of using pkgs.nextcloudXXPackages.apps,
|
||||||
# we'll reference the package version specified above
|
# we'll reference the package version specified above
|
||||||
autoUpdateApps.enable = true;
|
autoUpdateApps.enable = true;
|
||||||
|
appstoreEnable = true;
|
||||||
extraAppsEnable = true;
|
extraAppsEnable = true;
|
||||||
extraApps = {
|
extraApps = {
|
||||||
inherit (config.services.nextcloud.package.packages.apps)
|
inherit (config.services.nextcloud.package.packages.apps)
|
||||||
|
|
@ -144,10 +153,11 @@ in
|
||||||
import cloudflare
|
import cloudflare
|
||||||
'';
|
'';
|
||||||
virtualHosts."onlyoffice.${domain}".extraConfig = ''
|
virtualHosts."onlyoffice.${domain}".extraConfig = ''
|
||||||
reverse_proxy http://${host}:${toString config.services.onlyoffice.port}
|
|
||||||
import cloudflare
|
import cloudflare
|
||||||
|
reverse_proxy http://${host}:${toString config.services.onlyoffice.port} {
|
||||||
# Required to circumvent bug of Onlyoffice loading mixed non-https content
|
# Required to circumvent bug of Onlyoffice loading mixed non-https content
|
||||||
header_up X-Forwarded-Proto https
|
header_up X-Forwarded-Proto https
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue