Skip to content

nextcloud/terms_of_service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“œ Terms of service

REUSE status

Requires users to accept terms of service before accessing data. Text and languages are configurable on the administration panel.

πŸ”— Display on public shares

The setting applies to shares via link or mail (with and without password protection).

Default is disabled: 0

./occ config:app:set terms_of_service tos_on_public_shares --value '1'

πŸ‘€ Exclude registered users

To exclude registered users from accepting the terms of service, set this config to 0. Therefore, only public link and mail sharees have to accept the terms of service.

Default is enabled: 1

./occ config:app:set terms_of_service tos_for_users --value '0'

πŸ”Œ Allow access from other services

Some other services such as office suites communicate directly with the Nextcloud server. For Nextcloud Office and Officeonline the wopi_allowlist settings of the respective apps are taken into account.

To allow other services to bypass the terms of service check:

  • Set allow_ip_ranges to match the ip addresses of the servers in question.
  • Set allow_path_prefix to the paths that access should be granted to.

Default for allow_ip_ranges is none: Default for `allow_path_prefix` is none:

./occ config:app:set terms_of_service allow_ip_range --value '10.0.0.5,10.0.0.6'
./occ config:app:set terms_of_service allow_path_prefix --value '/apps/onlyoffice/download'

πŸ—οΈ Development setup

  1. Clone the repository
  2. Setup your environment: make
  3. Start contributing πŸŽ‰