infra/hosts/nachtigall/apps/collabora.nix

46 lines
944 B
Nix
Raw Normal View History

2023-10-28 19:39:13 +00:00
{
config,
lib,
pkgs,
self,
...
}: {
services.nginx.virtualHosts."collabora.pub.solar" = {
enableACME = true;
forceSSL = true;
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;
ports = [
2023-10-29 12:43:41 +00:00
"127.0.0.1:9980:9980"
2023-10-28 19:39:13 +00:00
];
extraOptions = [
"--cap-add=MKNOD"
"--pull=always"
];
environment = {
server_name = "collabora.pub.solar";
aliasgroup1 = "https://cloud.pub.solar:443";
DONT_GEN_SSL_CERT = "1";
extra_params = "--o:ssl.enable=false --o:ssl.termination=true";
SLEEPFORDEBUGGER = "0";
};
};
};
};
}