Nextcloud: Difference between revisions

m In previous edit, I didn't add the markup filename + language header.
m Add config for public-facing whiteboard server
 
Line 490: Line 490:


=== Whiteboard ===
=== Whiteboard ===
The [https://github.com/nextcloud/whiteboard Whiteboard app] requires a running backend server which is also packaged in NixOS.<syntaxhighlight lang="nix">
The [https://github.com/nextcloud/whiteboard Whiteboard app] requires a running backend server which is also packaged in NixOS.<syntaxhighlight lang="nix">environment.etc."nextcloud-whiteboard-secret".text = ''
environment.etc."nextcloud-whiteboard-secret".text = ''
   JWT_SECRET_KEY=test123
   JWT_SECRET_KEY=test123
'';
'';
Line 500: Line 499:
   secrets = [ /etc/nextcloud-whiteboard-secret ];
   secrets = [ /etc/nextcloud-whiteboard-secret ];
};
};
</syntaxhighlight>After applying the configuration configure the Nextcloud app to use it<syntaxhighlight lang="bash">
 
nextcloud-occ config:app:set whiteboard collabBackendUrl --value="http://localhost:3002"
# Expose whiteboard server in case you don’t operate your Nextcloud on localhost
nextcloud-occ config:app:set whiteboard jwt_secret_key --value="test123"
services.nginx.virtualHosts.${config.services.nextcloud.hostName}.locations."/whiteboard/" = {
</syntaxhighlight>
  proxyPass = "http://localhost:3002/";
  proxyWebsockets = true;
};</syntaxhighlight>After applying the configuration configure the Nextcloud app to use it<syntaxhighlight lang="bash">
nextcloud-occ config:app:set whiteboard collabBackendUrl --value="http://localhost:3002" # localhost only
nextcloud-occ config:app:set whiteboard collabBackendUrl --value="http://cloud.example.com/whiteboard" # Public (The domain is your Nextcloud hostname)
nextcloud-occ config:app:set whiteboard jwt_secret_key --value="test123"</syntaxhighlight>


=== NextCloud Office ===
=== NextCloud Office ===