2023-09-29 22:59:07 +02:00
|
|
|
{ config, ... }:
|
2023-09-29 22:45:34 +02:00
|
|
|
|
2023-09-29 22:59:07 +02:00
|
|
|
let
|
2025-05-01 14:58:21 +02:00
|
|
|
cfg = config.services.collabora-online;
|
2024-05-26 16:45:38 +02:00
|
|
|
in
|
|
|
|
|
{
|
2025-05-01 14:58:21 +02:00
|
|
|
services.collabora-online = {
|
|
|
|
|
enable = true;
|
|
|
|
|
aliasGroups = [
|
2024-05-26 16:45:38 +02:00
|
|
|
{
|
2025-05-01 14:58:21 +02:00
|
|
|
host = "https://office.felschr.com";
|
|
|
|
|
aliases = [ "https://cloud.felschr.com" ];
|
|
|
|
|
}
|
2023-09-29 22:45:34 +02:00
|
|
|
];
|
2025-05-01 14:58:21 +02:00
|
|
|
settings = {
|
|
|
|
|
ssl = {
|
|
|
|
|
enable = false;
|
|
|
|
|
termination = true;
|
|
|
|
|
};
|
|
|
|
|
};
|
2023-09-29 22:45:34 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
services.nginx.virtualHosts."office.felschr.com" = {
|
|
|
|
|
forceSSL = true;
|
|
|
|
|
enableACME = true;
|
|
|
|
|
locations."/" = {
|
2025-05-01 14:58:21 +02:00
|
|
|
proxyPass = "http://127.0.0.1:${toString cfg.port}";
|
2023-09-29 22:45:34 +02:00
|
|
|
proxyWebsockets = true;
|
|
|
|
|
extraConfig = ''
|
|
|
|
|
proxy_read_timeout 36000s;
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|