Configuring Federation Sharing

Federated Cloud Sharing is now managed by the Federation app (9.0+), and is now called Federation sharing. When you enable the Federation app you can easily and securely link file shares between OfficeOnline servers, in effect creating a cloud of OfficeOnlines.

Creating a new Federation Share

Follow these steps to create a new Federation share between two OfficeOnline servers. This requires no action by the user on the remote server; all it takes is a few steps on the originating server.

  1. Enable the Federation app.

  2. Go to your OfficeOnline Admin page and scroll to the Sharing section. Verify that Allow users on this server to send shares to other servers and Allow users on this server to receive shares from other servers are enabled.

  3. Now go to the Federation section. The Federation app supports creating a list of trusted OfficeOnline servers, which allows the trusted servers to exchange user directories and auto-complete the names of external users when you create shares.

../_images/federation-0.png
  1. Now go to your Files page and select a folder to share. Click the share icon, and then enter the username and URL of the user on the remote OfficeOnline server. In this example, that is freda@https://example.com/nextcloud. When OfficeOnline verifies the link, it displays it with the (remote) label. Click on this label to establish the link.

../_images/federation-2.png
  1. When the link is successfully completed, you have a single share option, and that is can edit.

../_images/federation-3.png

You may disconnect the share at any time by clicking the trash can icon.

Configuring trusted OfficeOnline servers

You may create a list of trusted OfficeOnline servers for Federation sharing. This allows your linked OfficeOnline servers to share user directories, and to auto-fill user names in share dialogs.

You may also enter OfficeOnline server URLs in the Add OfficeOnline Server field.

A red light means the connection failed. The yellow light indicates a successful connection, with no user names exchanged. The green light indicates a successful connection with user names exchanged.

The prerequisiste for a green status is that the trusted servers were maintained in both interacting OfficeOnline servers. Additionally occ federation:sync-addressbooks must have been executed (part of cron job list).

../_images/federation-1.png

Configuration tips

The Sharing section on your Admin page allows you to control how your users manage federated cloud shares:

  • Check Enforce password protection to require passwords on link shares.

  • Check Set default expiration date to require an expiration date on link shares.

  • Check Allow public uploads to allow two-way file sharing.

  • If you encounter timeouts for downloading or uploading large files, you can use the option davstorage.request_timeout in your config.php to increase the timeout. The default value is 30 seconds.

Your Apache Web server must have mod_rewrite enabled, and you must have trusted_domains correctly configured in config.php to allow external connections (see Installation wizard). Consider also enabling SSL to encrypt all traffic between your servers .

Your OfficeOnline server creates the share link from the URL that you used to log into the server, so make sure that you log into your server using a URL that is accessible to your users. For example, if you log in via its LAN IP address, such as http://192.168.10.50, then your share URL will be something like http://192.168.10.50/nextcloud/index.php/s/jWfCfTVztGlWTJe, which is not accessible outside of your LAN. This also applies to using the server name; for access outside of your LAN you need to use a fully-qualified domain name such as http://myserver.example.com, rather than http://myserver.