Commit Graph
52 Commits
Author SHA1 Message Date
1f94bc8af0 aio-interface: extract Nextcloud latest-major upgrade logic to dedicated script and add UI trigger button (#7988)
* Extract Nextcloud major upgrade logic to script and add UI button

Agent-Logs-Url: https://github.com/nextcloud/all-in-one/sessions/8cd11b09-5073-4e27-8e59-9afffaf96c1f

Rename sendNotification to execCommandInContainer and reuse for upgrade method

Agent-Logs-Url: https://github.com/nextcloud/all-in-one/sessions/88744552-9d64-4de2-9f64-5a98a5e3b200

Add $cmd array validation to execCommandInContainer

Agent-Logs-Url: https://github.com/nextcloud/all-in-one/sessions/45d5228c-7834-404e-ba54-90b5c8c207c8

Apply suggestion from @szaimen

Signed-off-by: Simon L. <szaimen@e.mail.de>

Apply suggestion from @szaimen

Signed-off-by: Simon L. <szaimen@e.mail.de>

Apply suggestion from @szaimen

Signed-off-by: Simon L. <szaimen@e.mail.de>

Apply suggestion from @szaimen

Signed-off-by: Simon L. <szaimen@e.mail.de>

Set installLatestMajor when upgrade-to-latest-major button is clicked

Agent-Logs-Url: https://github.com/nextcloud/all-in-one/sessions/7b977c85-9b74-4027-a536-152e49a01976

Extract getLatestMajorVersion() to avoid duplicating the version string

Agent-Logs-Url: https://github.com/nextcloud/all-in-one/sessions/d5ec921f-8629-4f6e-949a-e8f89f1eb85f

Address PR review comments and hardcode updater channel to stable

Agent-Logs-Url: https://github.com/nextcloud/all-in-one/sessions/c40941ff-2bf8-4a57-82be-2a0bd22b19a2

Restore sendNotification(), update cron files, extract getPlainStreamingCallback()

Agent-Logs-Url: https://github.com/nextcloud/all-in-one/sessions/a5b6cd86-d278-4771-8a11-976c4a862966

Remove getPlainStreamingCallback, unify on getAddToStreamingResponseBody

Agent-Logs-Url: https://github.com/nextcloud/all-in-one/sessions/15a4b815-076b-469f-95b2-c61df688a28d

Revert "Remove getPlainStreamingCallback, unify on getAddToStreamingResponseBody"

This reverts commit 6846c3a99549703121461f910cc26e6c116e0dc4.

* Refactor creating and using addToStreamingResponseBody()

This way we stick to having one implementation of the function, not three.

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>

* Read streamed output line by line, not via buffer

This way the code doesn't wait for a buffer to be filled, and we don't need to
implement logic ourselves that is provided by a present library already.

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>

* Ensure all HTTP requests are proxied, even with streaming

When requesting a streamed response, Guzzle apparently doesn't use curl, and thus we have to specify the unix socket proxy differently.

We can't specify it when creating the client, though (Guzzle complains).

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>

* Fix syntax errors

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>

* Remove broken code

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>

* Fix readline line from streaming response

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>

* Strip ANSI codes from command output before sending it to the browser

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>

* Run PHP commands as www-data

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>

* Properly compare version numbers

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>

* Fix using memory limits from env

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>

* Fix return type spec

This method always returns a closure, never null.

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>

* Use more general return type

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>

* Avoid psalm complaint

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>

* Fix namespace of return type

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>

* Apply suggestion from @szaimen

Signed-off-by: Simon L. <szaimen@e.mail.de>

---------

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
Signed-off-by: Simon L. <szaimen@e.mail.de>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Pablo Zmdl <pablo@nextcloud.com>
Co-authored-by: Simon L. <szaimen@e.mail.de>
2026-06-03 12:38:50 +02:00
Simon L. dabb7d0224 server.config.php: fix serverid closing bracket
Signed-off-by: Simon L. <szaimen@e.mail.de>
2026-05-22 10:06:32 +02:00
Simon L. 3a988938b2 server.config.php: downstream sync serverid upstream change
Signed-off-by: Simon L. <szaimen@e.mail.de>
2026-05-21 10:48:37 +02:00
Simon L. e05bdaeca0 nextcloud: allow to configure memcache_customprefix for redis
Signed-off-by: Simon L. <szaimen@e.mail.de>
2026-04-23 12:29:54 +02:00
copilot-swe-agent[bot]andszaimen 8a5440134b nextcloud: adjust redis timeouts
Agent-Logs-Url: https://github.com/nextcloud/all-in-one/sessions/1f9b7c14-6c7a-4008-b690-5167db1f90e6
Co-Authored-By: szaimen <42591237+szaimen@users.noreply.github.com>
Signed-off-by: Simon L. <szaimen@e.mail.de>
2026-04-23 10:45:02 +02:00
Simon L. d6e4b83c51 apps.config.php: allow to disable the internal app store (#7864) 2026-04-21 14:15:09 +02:00
fceec6f23e feat: improve Redis container performance
- Disable RDB persistence (--save "") since Redis is used as a pure
  cache and lock store; snapshotting causes fork/CoW pressure and I/O spikes
- Set --maxmemory-policy allkeys-lru to enable LRU eviction and prevent
  unbounded memory growth
- Enable lazyfree background deletions (--lazyfree-lazy-*) to move key
  eviction, expiry, and DEL operations off the main event loop thread
- Enable active memory defragmentation (--activedefrag yes) for long-running
  instances
- Increase background task frequency to --hz 15 for faster key expiry
- Add Transparent Huge Pages (THP) startup warning, consistent with the
  existing vm.overcommit_memory check
- Refactor start.sh to build arguments via a bash array, avoiding eval
  and safely handling the empty-string --save "" and the password argument
- Remove the pre-existing unreachable exec "$@" at the end of start.sh
- Add timeout and read_timeout (1.5s) to standalone Redis config in
  redis.config.php to prevent PHP workers from hanging indefinitely

Agent-Logs-Url: https://github.com/nextcloud/all-in-one/sessions/e68c1986-419f-49b4-9cd0-c1f0efda0351
Co-Authored-By: Simon L. <szaimen@e.mail.de>
Co-Authored-By: szaimen <42591237+szaimen@users.noreply.github.com>
2026-04-20 14:20:27 +02:00
Simon L. 1e5eb87582 nextcloud: add server.config.php that adds the serverid by using the hostname as key
Signed-off-by: Simon L. <szaimen@e.mail.de>
2026-04-16 10:51:31 +02:00
Simon L. f99a59fb58 apps.config.php: allow to disable the internal app store
Signed-off-by: Simon L. <szaimen@e.mail.de>
2026-04-07 15:08:42 +02:00
Simon L. ea326ba723 Merge pull request #7652 from nextcloud/enh/noid/redis-tls-support
redis.config.php: allow to enable tls
2026-03-06 10:00:32 +01:00
Simon L. d11650f798 redis.config.php: allow to enable tls
Signed-off-by: Simon L. <szaimen@e.mail.de>
2026-02-25 10:41:03 +01:00
Simon L. f12b47b301 s3.config.php: allow to configure request_checksum_calculation and response_checksum_validation
Signed-off-by: Simon L. <szaimen@e.mail.de>
2026-02-24 14:17:07 +01:00
Simon L. f46358b50e redis.config.php: fix some now optional values
Signed-off-by: Simon L. <szaimen@e.mail.de>
2026-02-23 10:25:12 +01:00
Simon L. 8344d8ade6 redis.config.php: fix typo
Signed-off-by: Simon L. <szaimen@e.mail.de>
2026-02-20 12:52:59 +01:00
Simon L. 1c0222774b Merge pull request #7402 from nextcloud/enh/noid/allow-configure-redis-cluster
allow to configure redis cluster
2026-02-18 18:34:25 +01:00
Simon L. 1ed7196de6 redis.config.php: allow to configure redis.cluster
Signed-off-by: Simon L. <szaimen@e.mail.de>
2026-01-21 12:07:21 +01:00
Simon L. b7d63253db postgres.config.php: fix PDO::MYSQL_ATTR_SSL_CA
Signed-off-by: Simon L. <szaimen@e.mail.de>
2026-01-20 11:50:04 +01:00
Simon L. b998fa8ebf s3.config.php: allow to configure num_buckets
Signed-off-by: Simon L. <szaimen@e.mail.de>
2026-01-12 10:58:58 +01:00
Simon L.andKate f415bf201d s3-config: adjust the multibucket setting
Signed-off-by: Simon L. <szaimen@e.mail.de>
Co-Authored-By: Kate <26026535+provokateurin@users.noreply.github.com>
2025-12-16 10:43:31 +01:00
Simon L. 17bf4f91d7 nextcloud: fix configuration of default_certificates_bundle_path and allow to use bundle for mailer
Signed-off-by: Simon L. <szaimen@e.mail.de>
2025-12-12 16:08:31 +01:00
Simon L. 3791251f3a Merge pull request #7217 from nextcloud/enh/noid/standardize-ca-config
standardize ca-config
2025-12-11 15:14:43 +01:00
Simon L. 6550107901 standardize ca-config
Signed-off-by: Simon L. <szaimen@e.mail.de>
2025-12-11 15:05:33 +01:00
Simon L. 1691a19036 make redis port configurable
Signed-off-by: Simon L. <szaimen@e.mail.de>
2025-12-08 15:47:28 +01:00
Simon L. 6b3af009e2 nextcloud: allow to configure mysql root cert
Signed-off-by: Simon L. <szaimen@e.mail.de>
2025-11-28 12:44:23 +01:00
Simon L. ce3c59618b s3-config: always use the nextcloud bundle for verification
Signed-off-by: Simon L. <szaimen@e.mail.de>
2025-11-20 21:44:46 +01:00
Simon L. 216d238625 Merge pull request #6903 from nextcloud/jtr/fix-s3-config-autocreate-ssl
fix: unify default initialization of s3 `autocreate`, `use_ssl`, `use_path_style` and `legacy_auth`
2025-09-29 11:20:03 +02:00
Simon L. dbcd5d8955 also adjust use_path_style and legacy_auth
Signed-off-by: Simon L. <szaimen@e.mail.de>
2025-09-29 11:15:53 +02:00
Simon L. cf4fb4d4a0 Merge pull request #6898 from nextcloud/enh/noid/postgres-rootcert
nextcloud: allow to define postgres root cert during install
2025-09-29 10:51:10 +02:00
Josh f3c666df9a fix: unify default initialization of s3 autocreate and use_ssl
Unify with micro-services image fix: nextcloud/docker#2309

Signed-off-by: Josh <josh.t.richards@gmail.com>
2025-09-26 15:53:28 -04:00
Simon L. 19b1469d85 nextcloud-s3-config: allow multibucket config
Signed-off-by: Simon L. <szaimen@e.mail.de>
2025-09-26 11:38:14 +02:00
Simon L. b692c1d049 nextcloud: allow to define postgres root cert during install
Signed-off-by: Simon L. <szaimen@e.mail.de>
2025-09-26 10:34:07 +02:00
Simon L. 99117072ce nextcloud: allow to configure custom appstoreurl
Signed-off-by: Simon L. <szaimen@e.mail.de>
2025-07-24 13:40:49 +02:00
Simon L. 3a2b1a2efe fix space
Signed-off-by: Simon L. <szaimen@e.mail.de>
2025-01-29 10:28:36 +01:00
Simon L. 0a1fba8c3b nextcloud: updates3.config.php
Signed-off-by: Simon L. <szaimen@e.mail.de>
2025-01-28 10:16:00 +01:00
Simon L. 4acc9d8f41 add idea
Signed-off-by: Simon L. <szaimen@e.mail.de>
2025-01-14 14:26:59 +01:00
Simon L. 2fc2be363a nextcloud: allow to configure redis user
Signed-off-by: Simon L. <szaimen@e.mail.de>
2025-01-13 16:56:33 +01:00
Simon L. 151b05ec01 nextcloud: config files: do not compare against false
Signed-off-by: Simon L. <szaimen@e.mail.de>
2024-08-09 16:36:16 +02:00
Simon L. f6fd960ba0 nextcloud: allow to configure proxy options via env
Signed-off-by: Simon L. <szaimen@e.mail.de>
2024-08-05 14:01:30 +02:00
Simon L. 03cb72116e nextcloud: fix APPS_ALLOWLIST
Signed-off-by: Simon L. <szaimen@e.mail.de>
2024-07-10 16:24:35 +02:00
Simon L. e9a31e1bc0 nextcloud: update s3.config.php
Signed-off-by: Simon L. <szaimen@e.mail.de>
2024-06-21 15:00:06 +02:00
Simon L. 17e002e929 nextcloud: properly add REDIS_DB_INDEX
Signed-off-by: Simon L. <szaimen@e.mail.de>
2024-06-21 10:52:47 +02:00
Simon L a6f2a3c76d add dbindex for redis as comment
Signed-off-by: Simon L <szaimen@e.mail.de>
2024-03-22 09:58:19 +01:00
Simon L 810dec4a96 nextcloud - update apps_paths to include absolute path
Signed-off-by: Simon L <szaimen@e.mail.de>
2024-03-14 12:22:54 +01:00
Julius Härtl dacd48cfd0 fix: Do not apply an empty allow list if none is set
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2024-02-19 16:09:51 +01:00
Simon L a0dd9d6605 helm chart - allow to configure additional values
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-11-16 14:20:07 +01:00
Simon L 369226f9df Revert "https://github.com/nextcloud/all-in-one/pull/3021" partially
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-08-10 10:38:27 +02:00
Simon L bc4bdfdc99 name file correctly
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-08-10 10:14:27 +02:00
Simon L dace781b4e make database connections persistant
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-07-24 01:17:40 +02:00
Simon L 42affc7d73 add aio-config
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-06-22 12:31:59 +02:00
szaimen bd4b3d69d6 add s3 and swift back for manual installations
Signed-off-by: szaimen <szaimen@e.mail.de>
2022-08-18 13:36:24 +02:00