No description
Find a file
Carl Schwan 62562507bf
Merge pull request #1131 from nextcloud/carl/modern-event
refactor: Use modern SabrePluginAddEvent
2025-12-18 13:52:15 +01:00
.github ci(psalm): Fix dependency and version setup again 2025-11-05 08:57:13 +01:00
.tx [tx-robot] Update transifex configuration 2022-10-01 03:00:56 +00:00
appinfo chore: Bump minimal supported version to NC30 2025-10-31 16:24:05 +01:00
build-js fix(reuse): Fix reuse issue 2025-11-05 08:53:05 +01:00
css feat: Port to vue3 2025-11-18 12:34:17 +01:00
docs Update screenshots 2022-09-19 10:04:42 +02:00
img Move the app to it's own setting section 2018-06-26 12:04:55 +02:00
js feat: Port to vue3 2025-11-18 12:34:17 +01:00
l10n fix(l10n): Update translations from Transifex 2025-12-15 01:40:18 +00:00
lib refactor: Use modern SabrePluginAddEvent 2025-12-18 11:13:32 +01:00
LICENSES feat: Port to vue3 2025-11-18 12:34:17 +01:00
src feat: Port to vue3 2025-11-18 12:34:17 +01:00
templates feat: Port to vue3 2025-11-18 12:34:17 +01:00
tests chore(psalm): Update stubs 2025-12-18 13:41:40 +01:00
vendor fix(composer): Don't add composer bin to autoloader 2025-11-19 15:17:47 +01:00
vendor-bin Merge branch 'master' into carl/rector 2025-11-20 17:00:26 +01:00
.eslintrc.js chore: Add SPDX header 2024-05-09 11:55:51 +02:00
.gitattributes Ignore compiled JS from git diffs 2019-03-18 11:09:35 +01:00
.gitignore ci(psalm): Add psalm CI 2024-10-23 11:11:02 +02:00
.l10nignore chore: Add SPDX header 2024-05-09 11:55:51 +02:00
.php-cs-fixer.dist.php chore: Add rector and cs-fix 2025-10-31 16:24:05 +01:00
AUTHORS.md chore: Add SPDX header 2024-05-09 11:55:51 +02:00
babel.config.js chore: Add SPDX header 2024-05-09 11:55:51 +02:00
CHANGELOG.md release: v4.7.0-rc1 2025-09-05 18:28:59 +02:00
composer.json Chore(deps): Bump geoip2/geoip2 from 2.13.0 to 3.3.0 2025-11-22 02:03:35 +00:00
composer.lock Chore(deps-dev): Bump bamarni/composer-bin-plugin from 1.8.2 to 1.8.3 2025-11-29 02:01:49 +00:00
COPYING Add packaging step to Makefile 2018-08-23 15:19:52 +02:00
eslint.config.mjs feat: Port to vue3 2025-11-18 12:34:17 +01:00
Makefile chore: Add SPDX header 2024-05-09 11:55:51 +02:00
openapi-administration.json feat: Add public capabilities 2024-12-23 09:40:03 +01:00
openapi-full.json chore: Add rector and cs-fix 2025-10-31 16:24:05 +01:00
openapi.json chore: Add rector and cs-fix 2025-10-31 16:24:05 +01:00
package-lock.json Chore(deps): Bump mdast-util-to-hast from 13.2.0 to 13.2.1 2025-12-02 03:36:27 +00:00
package.json Chore(deps-dev): Bump @vue/compiler-sfc from 3.5.24 to 3.5.25 2025-11-29 02:02:05 +00:00
psalm.xml refactor: Use modern SabrePluginAddEvent 2025-12-18 11:13:32 +01:00
README.md enh(docs): be more specific about IP to use in allow_ip_range 2025-04-28 15:36:44 +02:00
rector.php refactor(rector): Run rector 2025-11-19 15:43:39 +01:00
REUSE.toml feat: Port to vue3 2025-11-18 12:34:17 +01:00
stylelint.config.cjs feat: Port to vue3 2025-11-18 12:34:17 +01:00
tsconfig.json feat: Port to vue3 2025-11-18 12:34:17 +01:00
vite.config.ts feat: Port to vue3 2025-11-18 12:34:17 +01:00
webpack.js fix: don't create LICENSE.TXT anymore 2024-09-09 14:59:29 +02:00

📜 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_path_prefix to the paths that access should be granted to.
  • Set allow_ip_ranges to match the ip addresses of the servers in question. If you are using a reverse proxy, use the ip address of the application server. Access is allowed based on the x-forwarded-for header and not the source ip.

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

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

🏗️ Development setup

  1. Clone the repository
  2. Setup your environment: make
  3. Start contributing 🎉