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!
25 lines
647 B
Nix
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"
|
|
];
|
|
};
|
|
};
|
|
}
|