nixos-systems/modules/system/collabora.nix
Eli Ribble a26ed33b42 Switch to caddy, remove onlyoffice, add collabora
Most things work on this commit, except the integration between
collabora and seafile. I think it might be related to the timezone
change I made and a lack of access_token being passed in the URL.

I'm going to test that with a reboot. But first, checkpoint!
2025-07-18 22:45:02 +00:00

25 lines
647 B
Nix

{ config, lib, pkgs, configPath, ... }:
with lib;
{
options.myModules.collabora.enable = mkEnableOption "custom collabora configuration";
config = mkIf config.myModules.collabora.enable {
services.caddy.virtualHosts."collabora.gleipnir.technology".extraConfig = ''
reverse_proxy http://127.0.0.1:10020
'';
virtualisation.oci-containers.containers.collabora = {
image = "collabora/code";
ports = [ "127.0.0.1:10020:9980" ];
environment = {
domain = "collabora.gleipnir.technology";
extra_params = "--o:ssl.enable=false --o:ssl.termination=true";
};
extraOptions = [
"--cap-add"
"MKNOD"
];
};
};
}