diff --git a/void.nix b/void.nix index 41c6eaf..e3b0f0a 100644 --- a/void.nix +++ b/void.nix @@ -342,6 +342,27 @@ NEXTCLOUD_URL = "https://nextcloud.005540.xyz"; }; }; + services.collabora-online = { + enable = true; + settings = { + ssl = { + enable = false; + termination = true; + }; + + net = { + listen = "loopback"; + post_allow.host = ["::1"]; + }; + + storage.wopi = { + "@allow" = true; + host = ["nextcloud.005540.xyz"]; + }; + + server_name = "collabora.005540.xyz"; + }; + }; # dynamic dns services.ddclient = { @@ -460,6 +481,14 @@ enableACME = true; forceSSL = true; }; + "collabora.005540.xyz" = { + locations."/" = { + proxyPass = "http://[::1]:${toString config.services.collabora-online.port}"; + proxyWebsockets = true; + }; + enableACME = true; + forceSSL = true; + }; }; }; }