Commit Graph

561 Commits

Author SHA1 Message Date
Girish Ramakrishnan 79cdecdff6 graphite: fix aggregation of block/network read/write 2026-03-10 22:56:00 +05:30
Girish Ramakrishnan 480b81b3dd postgres: update pgvector to 0.8.2 2026-03-02 08:37:26 +05:30
Girish Ramakrishnan 55359bfa24 Update haraka to 3.1.3 2026-02-21 14:13:50 +01:00
Girish Ramakrishnan cdd5137ebe Update addons to latest builds 2026-02-18 17:44:18 +01:00
Girish Ramakrishnan f08b3eb006 mail: bring eventlog up to speed 2026-02-17 16:18:37 +01:00
Girish Ramakrishnan 96dc79cfe6 Migrate codebase from CommonJS to ES Modules
- Convert all require()/module.exports to import/export across 260+ files
- Add "type": "module" to package.json to enable ESM by default
- Add migrations/package.json with "type": "commonjs" to keep db-migrate compatible
- Convert eslint.config.js to ESM with sourceType: "module"
- Replace __dirname/__filename with import.meta.dirname/import.meta.filename
- Replace require.main === module with process.argv[1] === import.meta.filename
- Remove 'use strict' directives (implicit in ESM)
- Convert dynamic require() in switch statements to static import lookup maps
  (dns.js, domains.js, backupformats.js, backupsites.js, network.js)
- Extract self-referencing exports.CONSTANT patterns into standalone const
  declarations (apps.js, services.js, locks.js, users.js, mail.js, etc.)
- Lazify SERVICES object in services.js to avoid circular dependency TDZ issues
- Add clearMailQueue() to mailer.js for ESM-safe queue clearing in tests
- Add _setMockApp() to ldapserver.js for ESM-safe test mocking
- Add _setMockResolve() wrapper to dig.js for ESM-safe DNS mocking in tests
- Convert backupupload.js to use dynamic imports so --check exits before
  loading the module graph (which requires BOX_ENV)
- Update check-install to use ESM import for infra_version.js
- Convert scripts/ (hotfix, release, remote_hotfix.js, find-unused-translations)
- All 1315 tests passing

Migration stats (AI-assisted using Cursor with Claude):
- Wall clock time: ~3-4 hours
- Assistant completions: ~80-100
- Estimated token usage: ~1-2M tokens

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-14 15:11:45 +01:00
Girish Ramakrishnan e0e9f14a5e mail: increase solr timeout 2026-02-14 01:23:23 +01:00
Girish Ramakrishnan d75ad44315 mail: fix haraka crash 2026-02-09 16:04:13 +01:00
Girish Ramakrishnan 6303602323 graphite: update go-carbon to 0.19.1 2026-02-07 12:01:25 +01:00
Girish Ramakrishnan 87780a2fc8 sftp: update modules 2026-01-23 16:52:52 +01:00
Girish Ramakrishnan a6286bb67e mongodb: fcv fix
have to upgrade mongodb to 8.0 first
2026-01-23 13:48:01 +01:00
Girish Ramakrishnan 8521a47cfa mysql: pipework update 2026-01-23 12:32:47 +01:00
Girish Ramakrishnan 2040eb22a2 mail: update modules 2026-01-23 12:14:33 +01:00
Girish Ramakrishnan b6075a9765 redis: update to 8.4.0 2026-01-23 11:34:41 +01:00
Girish Ramakrishnan daacbcb89d mongodb: update to 8.2.3 2026-01-23 11:26:30 +01:00
Girish Ramakrishnan 6d622bbd14 postgres: pipework update 2026-01-23 11:18:06 +01:00
Girish Ramakrishnan 472e513a9f postgresql: reindex fix
(cherry picked from commit 6b56efcf14)
2026-01-18 18:27:44 +01:00
Girish Ramakrishnan 23e0fe5791 postgres: fix hook that upgrades vectorchord 2026-01-18 11:36:48 +01:00
Girish Ramakrishnan 61f37e0260 mongodb: fix fcv update issue 2026-01-13 15:21:30 +01:00
Girish Ramakrishnan e2f71b10ec mail: update haraka to 3.1.2 2026-01-12 11:25:48 +01:00
Girish Ramakrishnan a02e933375 Upgrade mongodb to mongobleed 2025-12-29 12:53:02 +01:00
Johannes Zellner 83efffb7f9 Use new postgres addon for vectorchord 0.5.3 2025-12-12 12:00:46 +01:00
Girish Ramakrishnan 2029148e7c update postgres vectorchord ext 2025-12-11 18:59:43 +01:00
Girish Ramakrishnan 64cb848a37 sftp: give it a static ip 2025-12-04 09:09:19 +01:00
Girish Ramakrishnan 8b04484ff7 Update haraka
deferred information and inet_prefer setting
2025-11-20 23:32:01 +01:00
Girish Ramakrishnan 3547be3401 Update redis to 8.2.2
https://redis.io/blog/security-advisory-cve-2025-49844/
2025-10-09 14:35:52 +02:00
Johannes Zellner 6d0a24cc95 Update postgres addon to support vectorchord 0.3.0 2025-07-24 16:45:08 +02:00
Johannes Zellner 6135e83653 Update postgresaddon to support vectorchord 2025-07-01 20:14:16 +02:00
Johannes Zellner f090bbc1c7 Update postgres addon to include vectorchord 2025-07-01 20:14:16 +02:00
Girish Ramakrishnan d924f73ceb services: change restart policy to unless-stopped
when we stop an app, the service containers are stopped. they
start running again on reboot.

correct restart policy is "unless-stopped" for all the containers.
2025-06-14 17:51:35 +02:00
Girish Ramakrishnan 155a348802 mongodb: reduce verbosity of logs 2025-06-12 22:27:57 +02:00
Girish Ramakrishnan f14fbfe087 turn: verbose logs in debug mode 2025-06-04 13:22:25 +02:00
Girish Ramakrishnan 4615418000 graphs: replace collectd with our custom collector
collectd (with the python plugin) seems semi-abandoned. replace
with our own. we have more control over how to collect things instead
of relying on random plugins.
2025-05-20 12:19:40 +02:00
Girish Ramakrishnan e829c2031c Update haraka to 3.1.1 2025-05-20 10:04:53 +02:00
Girish Ramakrishnan 5a10a8dd46 mail: rename delivered -> sent and received -> saved in event log 2025-05-09 19:11:59 +02:00
Johannes Zellner aa46285b8f Bring back immich vectors hook in postgres addon 2025-04-28 15:43:15 +02:00
Girish Ramakrishnan 8cdae41051 update container for auth free healthcheck
this allows us to check status from cloudron-support script more easily
2025-04-08 13:25:29 +02:00
Girish Ramakrishnan b2bb29911c mail: fix crash in haraka
https://github.com/haraka/Haraka/issues/3455
2025-04-03 08:05:14 +02:00
Girish Ramakrishnan 69d4514716 mysql: fix warning 2025-04-02 09:13:19 +02:00
Girish Ramakrishnan 16caeb5400 Update haraka to 3.1.0 2025-03-29 08:44:50 +01:00
Johannes Zellner 79093bf61c Update sftp addon to fix recursive chown 2025-03-28 11:15:01 +01:00
Girish Ramakrishnan de6837adb0 mail: fix warning about low client_limit 2025-03-25 15:27:26 +01:00
Girish Ramakrishnan d2de2c7093 postgres: fix illegal instruction issue
we have to disable -march=native when compiling as per
https://github.com/pgvector/pgvector?tab=readme-ov-file#portability

https://github.com/pgvector/pgvector/issues/143
https://github.com/pgvector/pgvector/issues/752
https://github.com/pgvector/pgvector/issues/389
(cherry picked from commit e3982e48ea)
2025-03-18 23:40:32 +01:00
Johannes Zellner da8a7041d1 Fix fs promise usage in sftp addon 2025-03-02 15:13:37 +01:00
Girish Ramakrishnan 3f3bb4d3b7 base image 5.0.0 2025-02-28 22:52:05 +01:00
Girish Ramakrishnan 84a1f40115 update mail image 2025-01-23 17:55:19 +01:00
Girish Ramakrishnan abb40b3ad7 mail: rebuild index 2025-01-23 17:47:49 +01:00
Girish Ramakrishnan dfd54b7b54 mail: disable ocr in tika 2025-01-23 17:23:34 +01:00
Girish Ramakrishnan ebc3dfc3f0 mail: update the dns-list plugin 2025-01-03 09:36:11 +01:00
Girish Ramakrishnan 0cf407b6f5 give mail container a static IP 2025-01-02 23:33:21 +01:00