2023-10-28 19:39:13 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
self,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
2024-05-08 17:47:47 +00:00
|
|
|
services.nginx.virtualHosts."collabora.${config.pub-solar-os.networking.domain}" = {
|
2023-10-28 19:39:13 +00:00
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
|
2023-11-03 11:21:51 +00:00
|
|
|
locations."/" = {
|
|
|
|
proxyWebsockets = true;
|
|
|
|
extraConfig = ''
|
|
|
|
proxy_pass http://127.0.0.1:9980;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
'';
|
|
|
|
};
|
2023-10-28 19:39:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
virtualisation = {
|
|
|
|
oci-containers = {
|
|
|
|
backend = "docker";
|
|
|
|
|
|
|
|
containers."collabora" = {
|
|
|
|
image = "collabora/code";
|
|
|
|
autoStart = true;
|
2023-10-29 12:43:41 +00:00
|
|
|
ports = [ "127.0.0.1:9980:9980" ];
|
2023-10-28 19:39:13 +00:00
|
|
|
extraOptions = [
|
|
|
|
"--cap-add=MKNOD"
|
|
|
|
"--pull=always"
|
|
|
|
];
|
|
|
|
environment = {
|
2024-05-08 17:47:47 +00:00
|
|
|
server_name = "collabora.${config.pub-solar-os.networking.domain}";
|
|
|
|
aliasgroup1 = "https://cloud.${config.pub-solar-os.networking.domain}:443";
|
2023-10-28 19:39:13 +00:00
|
|
|
DONT_GEN_SSL_CERT = "1";
|
|
|
|
extra_params = "--o:ssl.enable=false --o:ssl.termination=true";
|
|
|
|
SLEEPFORDEBUGGER = "0";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|