Configure collabora host

This commit is contained in:
pazpi 2026-02-04 13:40:14 +01:00
parent 00c636a7c5
commit 58f883b09e
5 changed files with 47 additions and 38 deletions

View file

@ -47,14 +47,6 @@ in
'';
};
officeSubdomain = lib.mkOption {
default = "office";
type = lib.types.str;
description = ''
The subdomain where Collabora Online is reachable
'';
};
host = lib.mkOption {
default = "localhost";
type = lib.types.str;
@ -106,11 +98,6 @@ 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 = {
@ -143,7 +130,7 @@ in
contacts
calendar
cookbook
cospend
# cospend
tasks
richdocuments
;
@ -151,27 +138,10 @@ in
};
collabora-online = {
enable = true;
settings = {
host = [
''127\.0\.0\.1''
];
storage.wopi."@allow" = true;
};
# hostname = "office.${cfg.proxy.domain}";
};
};
networking.firewall.allowedTCPPorts = [
80
config.services.collabora-online.port
];
environment.systemPackages = with pkgs; [
exiftool
ffmpeg
];
systemd.services."nextcloud-setup" = {
@ -187,13 +157,6 @@ in
reverse_proxy http://${host}:80
import cloudflare_${domain}
'';
virtualHosts."${officeSubdomain}.${domain}".extraConfig = ''
import cloudflare_${domain}
reverse_proxy http://${host}:${toString config.services.collabora-online.port} {
# Required to circumvent bug of Onlyoffice loading mixed non-https content
header_up X-Forwarded-Proto https
}
'';
};
})
];