36 lines
1.2 KiB
Nix
36 lines
1.2 KiB
Nix
{ config, containerCfg, pkgs, lib, builder, ... }:
|
|
let
|
|
version = "latest";
|
|
serverCfg = config.syscfg.server;
|
|
in {
|
|
containers = {
|
|
server = builder.mkContainer {
|
|
subdomain = containerCfg.subdomain;
|
|
image = "collabora/code:${version}";
|
|
port = containerCfg.port;
|
|
ip = containerCfg.ip;
|
|
secret = "collabora";
|
|
extraEnv = {
|
|
"username" = "COLLABORA_USER";
|
|
"password" = "COLLABORA_PASSWORD";
|
|
"aliasgroup1" = "https://${serverCfg.containers.nextcloud.subdomain}.${serverCfg.hostDomain}";
|
|
"server_name" = "${containerCfg.subdomain}.${serverCfg.hostDomain}";
|
|
"VIRTUAL_HOST" = "${containerCfg.subdomain}.${serverCfg.hostDomain}";
|
|
"VIRTUAL_PORT" = "${containerCfg.port}";
|
|
"VIRTUAL_PROTO" = "http";
|
|
"DONT_GEN_SSL_CERT" = "true";
|
|
"RESOLVE_TO_PROXY_IP" = "true";
|
|
"extra_params" = "--o:ssl.enable=false --o:ssl.termination=true";
|
|
"dictionaries" = "en fr de jp no";
|
|
};
|
|
|
|
overrides = {
|
|
volumes = [
|
|
"${pkgs.noto-fonts}/share/fonts/noto:/opt/collaboraoffice/share/fonts/truetype/noto:ro"
|
|
"${pkgs.ibm-plex}/share/fonts/opentype:/opt/collaboraoffice/share/fonts/opentype/plex:ro"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|