GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Created with Okidoki

This view

  • Original page
  • New address

GeezerVison is showing joendres.gitlab.io — *cloud - Filelink for Nextcloud OpenCloud ownCloud

On this page
  • Nextcloud
    • Server Settings
    • Rate Limit on Sharing
  • ownCloud Classic
  • ownCloud Infinite Scale (oCIS)
    • Enable App Tokens (preferred)
    • Enable HTTP Basic Auth (not recommended)
  • All Web Servers
    • Redirects
    • Self-signed certificates
  • Apache
    • mod_rewrite
  • Deploy Settings with Enterprise Policies
    • Additional Information

*cloud for Cloud Administrators

Nextcloud

Server Settings

Some admin setting on the Nextcloud server are necessary for *cloud to work:

  • Settings -> Sharing -> Allow apps to use the Share API has to be enabled
  • Settings -> Sharing -> Allow users to share via link has to be enabled
  • The app “Share Files” has to be active.

Rate Limit on Sharing

By default, Nextcloud limits each user to 20 share link creations within any 10-minute interval. If users of *cloud send emails with many attachments in a short time, they may hit this limit: Uploads succeed, but sharing fails with a generic error message.

To raise the limit, add the following to your Nextcloud config/config.php:

'ratelimit_overwrite' => [
  'files_sharing.shareapi.createshare' => [
    'user' => ['limit' => 50, 'period' => 600],
  ]
],

This example allows 50 share link creations per 10 minutes. Adjust limit and period (in seconds) to your needs.

This raises the limit only for share link creation; all other rate limits stay unchanged.

ownCloud Classic

Some admin setting on the ownCloud Classic server are necessary for *cloud to work:

  • Settings -> Sharing -> Allow apps to use the Share API has to be enabled
  • Settings -> Sharing -> Allow users to share via link has to be enabled
  • The app “Share Files” has to be active.

ownCloud Infinite Scale (oCIS)

oCIS does not support *cloud out of the box. You have to two options to enable it:

Enable App Tokens (preferred)

  1. Enable the Auth App Service. This requires two environment variables:
    • OCIS_ADD_RUN_SERVICES=auth-app
    • PROXY_ENABLE_APP_AUTH=true
  2. Add the app App Tokens to your oCIS instance. This allows users to create their own App Tokens.

Enable HTTP Basic Auth (not recommended)

The oCIS documentation explicitly says:

  • Basic Auth (Only use in development, never in production setups!)

and

  • In a production deployment, you want to have basic authentication […] disabled which is the default state.

Activating the Auth Basic Service does not enable App Tokens but allows the users to use their passwords with *cloud.

All Web Servers

Redirects

In some configurations a start URL like https://cloud.example.com is redirected to the actual URL of the cloud e.g. https://example.com/cloud. *cloud has to access many different paths below this URL, e.g… status.php. If these are not also redirected (https://cloud.example.com/status.php -> https://example.com/cloud/status.php), *cloud can’t access them and doesn’t work. There is no way for the extension to find the actual base URL with some certainty.

There is a workaround: Users can find out the actual URL and configure it in *cloud. But it’s easier for users if all URLs are redirected. So it would be greatly appreciated if you would do that in your cloud instance (if you have to use redirects at all). Thanks.

Self-signed certificates

By default Thunderbird (not *cloud) refuses HTTPS connections using self-signed certificates. It’s a lot easier for your users, if you install a Let’s encrypt certificate. There are great How-tos on their site.

Apache

mod_rewrite

Nextcloud and ownCloud Classic both require mod_rewrite to be active if run in the Apache HTTP server. Without mod_rewrite *cloud fails with different error scenarios depending on other details of the configuration.

Deploy Settings with Enterprise Policies

*cloud accounts can be configured with Thunderbird Enterprise Policies. Here a partial example:

{
  "policies": {
    "Preferences": {
      "mail.cloud_files.accounts.INTERNAL_ID_GOES_HERE.displayName": {
        "Value": "YOUR CLOUD NAME GOES HERE"
      },
      "mail.cloud_files.accounts.INTERNAL_ID_GOES_HERE.type": {
        "Value": "[email protected]"
      }
    },
    "3rdparty": {
      "Extensions": {
        "[email protected]": {
          "accounts": {
            "INTERNAL_ID_GOES_HERE": {
              "serverUrl": {
                "Value": "https://cloud.example.com",
                "Status": "locked"
              },
              "username": {
                "Value": "john_doe"
              }
            }
          }
        }
      }
    }
  }
}

The first two policies under "Preferences" create a *cloud account. Thunderbird requires these entries to exist before the Add-on can configure the account; the Add-on can’t create accounts itself.

In both entries you have to have the same internal ID. You can choose any string of letters and numbers (no spaces).

Warning Do not use an internal ID in the form “account”+number (like account10) as Thunderbird uses IDs of this format for accounts a user creates manually in the UI.

The internal ID usually doesn’t appear in the UI, but advanced users might find it. The Value of the displayName setting is just that: Thunderbird shows it in the UI and adds it to the link (in HTML messages).

You can deploy multiple accounts with different internal IDs.

The actual *cloud account settings are in the accounts object. For every account you have to add a settings object. The key has to be your internal ID exactly.

Currently only these fields can be set via the policies mechanism:

  • serverUrl
  • username
  • password
  • storageFolder

Most other options of a *cloud account (e.g. mandatory download password) can be enforced by cloud server configurations. (If you don’t agree please open an issue explaining why you need which setting.)

"Status": "locked" on settings of *cloud (under "3rdparty") does not strictly lock these settings, it disables the fields in the UI. Advanced users might find a way to change them.

locked settings for *cloud are overwritten with the Value on every start of Thunderbird. Settings that don’t have "Status": "locked" will not be overwritten but will keep user changes.

Additional Information

  • "Status": "clear" works similar to the Preferences policies for *cloud settings too: It removes the particular *cloud setting. This might lead to an empty field or the default being used.
  • Setting "Status": "locked" on the two Preferences that create an account doesn’t work as expected: Thunderbird only observes this in the about:config dialog; in the “Compose” settings users can still rename and remove the account.
  • The documentation for Configuring Firefox using policies.json is far more detailed than the documentation for Thunderbird. But with a grain of salt it applies to Thunderbird, too.

On this page

  • Nextcloud
    • Server Settings
    • Rate Limit on Sharing
  • ownCloud Classic
  • ownCloud Infinite Scale (oCIS)
    • Enable App Tokens (preferred)
    • Enable HTTP Basic Auth (not recommended)
  • All Web Servers
    • Redirects
    • Self-signed certificates
  • Apache
    • mod_rewrite
  • Deploy Settings with Enterprise Policies
    • Additional Information
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.