Skip to content

🌏 Testing federation while there is no frontend yet #10686

@nickvergessen

Description

@nickvergessen

Couple of manual steps are needed at the moment before being able to execute federation things locally.

  1. Enable federation on your instance
occ config:app:set spreed federation_enabled --value yes
  1. Allow federation with self-signed certificates and local remote servers
occ config:system:set sharing.federation.allowSelfSignedCertificates --value true --type bool
occ config:system:set allow_local_remote_servers --value true --type bool
  1. In case you do have a SSL cert set up on the instance you want to sent the federation invite to, make sure it's imported into your nextcloud and check it really worked (second command)
occ security:certificates:import /path/to/the/nextcloud.crt
occ security:certificates 

Lists something like the following for me:

+-----------------+-------------+--------------+--------------+-------------------------------------+
| File Name       | Common Name | Organization | Valid Until  | Issued By                           |
+-----------------+-------------+--------------+--------------+-------------------------------------+
| nextcloud28.crt | nextcloud28 | Nickv        | May 20, 2028 | Nickvergessen Certificate Authority |
+-----------------+-------------+--------------+--------------+-------------------------------------+
  1. Install the OCS viewer app https://github.com/nextcloud/ocs_api_viewer
  2. Navigate to the OCS > spreed > room > "Add a participant to a room"
  3. Fill in the auth (your current user name + password)
  4. Fill in the parameters: (see big screenshot below)
    • apiVersion: v4
    • token: token of the conversation you want to invite to
    • newParticipant: USERID@SERVERIP or when you use a domain to access nextcloud use that, e.g. [email protected]
    • sources: remotes
    • Confirm with Send API Request
  5. 🎉 The invited user should now have a notification informing them about the invite
    grafik

grafik

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions