Collabora Office fix

This commit is contained in:
Aleksandr Lebedev 2025-10-16 17:33:28 +02:00
parent 0c5fa9b8d4
commit 11bcac1297
3 changed files with 48 additions and 5 deletions

View file

@ -23,8 +23,16 @@ with lib.custom; {
dbtype = "pgsql";
adminpassFile = config.sops.secrets."services/nextcloud/dbPassword".path;
};
phpOptions = {
"opcache.interned_strings_buffer" = "64";
"opcache.memory_consumption" = "256";
};
settings = {
"maintenance_window_start" = 1;
log_type = "syslog";
default_locale = "ru_RU";
default_phone_region = "DE";
allow_user_to_change_display_name = true;
};
hostName = "nextcloud.kylekrein.com";
https = true;
@ -80,7 +88,7 @@ with lib.custom; {
post_allow.host = ["::1"];
};
# Restrict loading documents from WOPI Host nextcloud.example.com
# Restrict loading documents from WOPI Host nextcloud.kylekrein.com
storage.wopi = {
"@allow" = true;
host = ["nextcloud.kylekrein.com"];
@ -97,7 +105,6 @@ with lib.custom; {
wopi_url = "http://[::1]:${toString config.services.collabora-online.port}";
public_wopi_url = "https://collabora.kylekrein.com";
wopi_allowlist = lib.concatStringsSep "," [
"192.168.178.129"
"127.0.0.1"
"::1"
];
@ -115,4 +122,9 @@ with lib.custom; {
Type = "oneshot";
};
};
networking.hosts = {
"127.0.0.1" = ["nextcloud.kylekrein.com" "collabora.kylekrein.com"];
"::1" = ["nextcloud.kylekrein.com" "collabora.kylekrein.com"];
};
}