nix fmt
This commit is contained in:
parent
e641c5b9b4
commit
256689e389
12 changed files with 54 additions and 38 deletions
|
|
@ -55,24 +55,21 @@ in
|
|||
|
||||
services.collabora-online = {
|
||||
enable = true;
|
||||
settings =
|
||||
{
|
||||
net.listen = "0.0.0.0";
|
||||
settings = {
|
||||
net.listen = "0.0.0.0";
|
||||
|
||||
# terminate TLS at Caddy, NOT in coolwsd
|
||||
ssl.enable = false;
|
||||
ssl.termination = true;
|
||||
# terminate TLS at Caddy, NOT in coolwsd
|
||||
ssl.enable = false;
|
||||
ssl.termination = true;
|
||||
|
||||
# allow WOPI (Nextcloud etc.)
|
||||
storage.wopi."@allow" = true;
|
||||
}
|
||||
// lib.optionalAttrs (cfg.trustedDomains != [ ]) {
|
||||
# Restrict which hosts may use WOPI (e.g. only your Nextcloud).
|
||||
# Collabora expects regexes here, so escape dots.
|
||||
storage.wopi.host = map
|
||||
(d: builtins.replaceStrings [ "." ] [ "\\." ] d)
|
||||
cfg.trustedDomains;
|
||||
};
|
||||
# allow WOPI (Nextcloud etc.)
|
||||
storage.wopi."@allow" = true;
|
||||
}
|
||||
// lib.optionalAttrs (cfg.trustedDomains != [ ]) {
|
||||
# Restrict which hosts may use WOPI (e.g. only your Nextcloud).
|
||||
# Collabora expects regexes here, so escape dots.
|
||||
storage.wopi.host = map (d: builtins.replaceStrings [ "." ] [ "\\." ] d) cfg.trustedDomains;
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue