1822 Commits

Author SHA1 Message Date
Kasra Bigdeli 9fd0eb525e Updated changelog
Run build / build (push) Has been cancelled
Run formatter / check-code-formatting (push) Has been cancelled
Run lint / run-lint (push) Has been cancelled
Build and push the edge image / run-pre-checks (push) Has been cancelled
Build and push the edge image / build-publish-docker-hub (push) Has been cancelled
2026-04-12 16:26:11 -07:00
Kasra Bigdeli 7657d82a62 Merge pull request #2389 from hamza-younas94/backup-filename-include-hostname
Append leader hostname to backup filename
2026-04-12 16:24:12 -07:00
Hamza Younas bf1beb5c99 Append leader hostname to backup filename (#1257)
Backup tar files currently use a filename that only encodes a
timestamp and the leader's IP, e.g.

    caprover-backup-2026_04_10-19_30_00-1744312200000-ip-1_2_3_4.tar

When you run several CapRover instances behind a NAT or with
similar IPs, that filename is not enough to tell the backups apart
after downloading them.

This appends the swarm leader's hostname to the existing filename:

    caprover-backup-...-ip-1_2_3_4-host-captain-prod.tar

The hostname is sanitized to a portable charset ([A-Za-z0-9._-]) so
it is safe in filesystems and HTTP Content-Disposition headers, and
the segment is omitted entirely when the leader has no hostname, so
existing single-node setups see no change beyond an additional
suffix when one is available.

The sanitization step is exposed as a small static helper
(`BackupManager.sanitizeHostnameForFilename`) so it can be unit
tested in isolation. Top-level cleanup hooks in the existing test
file are now gated on `process.env.CI`, matching how the
integration tests in the same file are gated, so the new pure
helper tests can run on a developer workstation.

Closes #1257
2026-04-10 19:56:29 +05:00
Kasra Bigdeli ca844fc4f0 Merge pull request #2372 from ivnnv/api-patch-app-definition
Run build / build (push) Has been cancelled
Run formatter / check-code-formatting (push) Has been cancelled
Run lint / run-lint (push) Has been cancelled
Build and push the edge image / run-pre-checks (push) Has been cancelled
Build and push the edge image / build-publish-docker-hub (push) Has been cancelled
Add PATCH endpoint for partial app definition updates
2026-01-31 07:42:45 -08:00
Ivn Nv 78d57c93ea more maintainable implementation 2026-01-30 21:49:18 -05:00
Ivn Nv 60a1fd880b fix null case / format 2026-01-30 21:33:47 -05:00
Ivn Nv 38a45dfbe7 Add PATCH /update/ endpoint for partial app definition updates
The existing POST /update/ replaces all fields — omitted fields are
reset to defaults (e.g. envVars becomes [], instanceCount becomes 0).
This makes simple operations like scaling dangerous: sending only
{appName, instanceCount} wipes all environment variables.

The new PATCH /update/ endpoint fetches the existing app definition
and merges only the explicitly provided fields. Omitted fields retain
their current values.

Example — scale without touching env vars:
  PATCH /api/v2/user/apps/appDefinitions/update/
  {"appName": "my-app", "instanceCount": 1}

The POST endpoint is unchanged — full backward compatibility.
2026-01-30 13:33:45 -05:00
Kasra Bigdeli 45d09773f8 Updated changelog
Run build / build (push) Has been cancelled
Run formatter / check-code-formatting (push) Has been cancelled
Run lint / run-lint (push) Has been cancelled
Build and push the edge image / run-pre-checks (push) Has been cancelled
Build and push the edge image / build-publish-docker-hub (push) Has been cancelled
2025-12-04 13:57:38 -08:00
Kasra Bigdeli edee7d8613 Fixed issue raised in https://github.com/caprover/caprover/pull/2362\#issuecomment-3609213641
Run build / build (push) Has been cancelled
Run formatter / check-code-formatting (push) Has been cancelled
Run lint / run-lint (push) Has been cancelled
Build and push the edge image / run-pre-checks (push) Has been cancelled
Build and push the edge image / build-publish-docker-hub (push) Has been cancelled
2025-12-03 22:59:41 -08:00
Kasra Bigdeli 3ad3ef59bc Merge pull request #2362 from rklos/anonymise-ips
Run build / build (push) Has been cancelled
Run formatter / check-code-formatting (push) Has been cancelled
Run lint / run-lint (push) Has been cancelled
Build and push the edge image / run-pre-checks (push) Has been cancelled
Build and push the edge image / build-publish-docker-hub (push) Has been cancelled
Add support for new ANONYMIZE_IP env in goAccess
2025-12-02 22:09:50 -08:00
Radosław Kłos 93c7981b9a Add support for new ANONYMIZE_IP env in goAccess 2025-12-02 00:59:44 +01:00
Kasra Bigdeli 61776ea17f Updated changelog
Run build / build (push) Has been cancelled
Run formatter / check-code-formatting (push) Has been cancelled
Run lint / run-lint (push) Has been cancelled
Build and push the edge image / run-pre-checks (push) Has been cancelled
Build and push the edge image / build-publish-docker-hub (push) Has been cancelled
2025-11-30 23:07:37 -08:00
Kasra Bigdeli cfe02af46a Updated https://github.com/caprover/caprover/pull/2360 2025-11-30 21:26:53 -08:00
Kasra Bigdeli 53e9467ca9 Merge pull request #2360 from dshook/gzip-config
Gzip config
2025-11-30 21:25:00 -08:00
Dillon Shook 53411da0b9 PR feedback 2025-11-30 13:17:35 -05:00
Dillon Shook 7a8aaf8a7b Make whitespace consistent 2025-11-28 21:10:16 -05:00
Dillon Shook 1c501b8dd4 #2259 Enable gzip compression for apps 2025-11-28 21:07:59 -05:00
Kasra Bigdeli 0b3fdd31de Implemented BuildKit https://github.com/caprover/caprover/issues/1582
Run build / build (push) Has been cancelled
Run formatter / check-code-formatting (push) Has been cancelled
Run lint / run-lint (push) Has been cancelled
Build and push the edge image / run-pre-checks (push) Has been cancelled
Build and push the edge image / build-publish-docker-hub (push) Has been cancelled
2025-11-27 22:24:59 -08:00
Kasra Bigdeli 1f54088302 Fixed https://github.com/caprover/caprover/issues/2354
Run build / build (push) Has been cancelled
Run formatter / check-code-formatting (push) Has been cancelled
Run lint / run-lint (push) Has been cancelled
Build and push the edge image / run-pre-checks (push) Has been cancelled
Build and push the edge image / build-publish-docker-hub (push) Has been cancelled
2025-11-11 15:32:53 -08:00
Kasra Bigdeli 4801585c76 Merge pull request #2353 from caprover/release
Run build / build (push) Has been cancelled
Run formatter / check-code-formatting (push) Has been cancelled
Run lint / run-lint (push) Has been cancelled
Build and push the edge image / run-pre-checks (push) Has been cancelled
Build and push the edge image / build-publish-docker-hub (push) Has been cancelled
Release backmerge
2025-11-11 00:51:01 -08:00
Kasra Bigdeli 6e78650ef2 Merge pull request #2352 from caprover/hotfix-api-docker
Build and push the release image / run-pre-checks (push) Has been cancelled
Build and push the release image / build-publish-docker-hub (push) Has been cancelled
[HOTFIX] Updated Docker API version
v.14.1
2025-11-11 00:46:40 -08:00
Kasra Bigdeli 3589547dbc Updated Docker API version 2025-11-11 00:22:32 -08:00
Kasra Bigdeli 547fb3159b Merge branch 'master' of github.com:caprover/caprover 2025-11-11 00:20:26 -08:00
Kasra Bigdeli 2e121e8e0c Updated Docker API version 2025-11-11 00:20:19 -08:00
Kasra Bigdeli 78a9b0ce6f Updated Docker API version 2025-11-11 00:12:54 -08:00
Kasra Bigdeli 77725773a2 Merge pull request #2350 from rosano/patch-1
Run build / build (push) Has been cancelled
Run formatter / check-code-formatting (push) Has been cancelled
Run lint / run-lint (push) Has been cancelled
Build and push the edge image / run-pre-checks (push) Has been cancelled
Build and push the edge image / build-publish-docker-hub (push) Has been cancelled
Fix typo
2025-10-20 23:19:23 -07:00
Rosano 26e14f7411 Fix typo 2025-10-21 07:10:09 +01:00
Kasra Bigdeli 5d03bb3ea2 Fixed tests
Run build / build (push) Has been cancelled
Run formatter / check-code-formatting (push) Has been cancelled
Run lint / run-lint (push) Has been cancelled
Build and push the edge image / run-pre-checks (push) Has been cancelled
Build and push the edge image / build-publish-docker-hub (push) Has been cancelled
2025-10-13 22:55:17 -07:00
Kasra Bigdeli 6fe86982bc adding report for unused fields so that we can better prioritize adding support 2025-10-13 22:50:21 -07:00
Kasra Bigdeli 587a63e3af Merge pull request #2343 from internet2000/master
Run build / build (push) Has been cancelled
Run formatter / check-code-formatting (push) Has been cancelled
Run lint / run-lint (push) Has been cancelled
Build and push the edge image / run-pre-checks (push) Has been cancelled
Build and push the edge image / build-publish-docker-hub (push) Has been cancelled
Allow numbers in project name, fix #2130
2025-09-29 22:16:44 -07:00
Alex Hoyau be5d55d4ce Allow numbers in project name, fix #2130 2025-09-29 14:41:41 +02:00
Kasra Bigdeli cf4d6f99ce Updated changelog
Run build / build (push) Has been cancelled
Run formatter / check-code-formatting (push) Has been cancelled
Run lint / run-lint (push) Has been cancelled
Build and push the edge image / run-pre-checks (push) Has been cancelled
Build and push the edge image / build-publish-docker-hub (push) Has been cancelled
2025-09-10 23:00:21 -07:00
Kasra Bigdeli 5e4f08db1c Allowing docker compose deploys 2025-09-10 22:49:30 -07:00
Kasra Bigdeli ec8371dc12 Updated changelogs
Run build / build (push) Has been cancelled
Run formatter / check-code-formatting (push) Has been cancelled
Run lint / run-lint (push) Has been cancelled
Build and push the edge image / run-pre-checks (push) Has been cancelled
Build and push the edge image / build-publish-docker-hub (push) Has been cancelled
2025-09-09 22:05:46 -07:00
Kasra Bigdeli 8bd58bf32c Reverted unintended changes in https://github.com/caprover/caprover/pull/2336 2025-09-09 22:03:27 -07:00
Kasra Bigdeli 1b89d9123b Merge pull request #2336 from R3D347HR4Y/excludelogsfrombackups
FIX - Deletes the shared-logs from the copied /captain/data folder upon a backup of the config
2025-09-09 22:02:06 -07:00
Kasra Bigdeli e902762809 Fied build
Run build / build (push) Has been cancelled
Run formatter / check-code-formatting (push) Has been cancelled
Run lint / run-lint (push) Has been cancelled
Build and push the edge image / run-pre-checks (push) Has been cancelled
Build and push the edge image / build-publish-docker-hub (push) Has been cancelled
2025-09-06 21:58:08 -07:00
Kasra Bigdeli b47bdddc66 Updated changelog 2025-09-06 21:57:12 -07:00
Kasra Bigdeli fa2f251db1 Added autocleanup for backend jobs 2025-09-06 21:55:25 -07:00
Kasra Bigdeli 399bfd3c86 Merge pull request #2334 from caprover/oneclick-move-backend
Moving one click apps to backend.
2025-09-06 21:52:35 -07:00
Kasra Bigdeli 15595a6a62 updated formatting 2025-09-06 19:34:23 -07:00
Kasra Bigdeli 9caba312a1 updated API to use array 2025-09-06 19:32:14 -07:00
R3D347HR4Y bc2318d056 Reverted settings.json 2025-09-06 09:36:05 +02:00
R3D347HR4Y 2664437159 Update BackupManager.ts 2025-09-06 09:35:35 +02:00
R3D347HR4Y 38096fff15 FIX - Deletes the shared-logs from the copied /captain/data folder upon a backup of the config 2025-09-05 12:34:49 +02:00
Kasra Bigdeli e098ba900b Fixing regression bugs 2025-09-03 22:33:39 -07:00
Kasra Bigdeli 0fa8643fae Moved uploadCaptainDefinitionContent to handler-- backend is almost done 2025-09-02 23:42:26 -07:00
Kasra Bigdeli a0247e068e Moved updateConfigAndSave to handler 2025-09-02 23:33:45 -07:00
Kasra Bigdeli c3abec0367 Moved GetAllApps to handler 2025-09-02 23:18:48 -07:00
Kasra Bigdeli 6a35863cd3 Fixed register project in one click app handler 2025-09-02 23:10:33 -07:00