From 510e3325733982da5eebfcbbd3c1cd9539f98ac6 Mon Sep 17 00:00:00 2001 From: acknologia <64101826+acknologia@users.noreply.github.com> Date: Mon, 18 May 2026 14:07:50 -0400 Subject: [PATCH] affine v4 script --- .../apps/install-scripts/curated/index.md | 1 + docs/public/install-scripts/affine.json | 50 +++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 docs/public/install-scripts/affine.json diff --git a/docs/features/apps/install-scripts/curated/index.md b/docs/features/apps/install-scripts/curated/index.md index 18e4e49..c94f49d 100644 --- a/docs/features/apps/install-scripts/curated/index.md +++ b/docs/features/apps/install-scripts/curated/index.md @@ -3,6 +3,7 @@ | App | Download | Size | Last Modified | |---|---|---:|---| +| `affine` | [affine.json](/install-scripts/affine.json) | 1.5 KB | 2026-05-18 | | `bazarr` | [bazarr.json](/install-scripts/bazarr.json) | 1.4 KB | 2026-05-15 | | `drawio` | [drawio.json](/install-scripts/drawio.json) | 634 B | 2026-05-15 | | `emby` | [emby.json](/install-scripts/emby.json) | 2.3 KB | 2026-05-15 | diff --git a/docs/public/install-scripts/affine.json b/docs/public/install-scripts/affine.json new file mode 100644 index 0000000..be28784 --- /dev/null +++ b/docs/public/install-scripts/affine.json @@ -0,0 +1,50 @@ +{ + "version": 4, + "script": { + "version": "1.0.0", + "changeLog": "Initial" + }, + "requirements": { + "locations": ["ApplicationsPerformance", "Documents"], + "specifications": ["2CORE", "256MB"], + "permissions": ["READ_WRITE_LOCATIONS"], + "ports": [30169] + }, + "ensure_directories_exists": [ + { + "path": "$LOCATION(ApplicationsPerformance)", + "network_share": true + }, + { + "path": "$LOCATION(Documents)", + "network_share": true + }, + { "path": "$LOCATION(Documents)/affine", "owner": { "user": "apps" }, "snapshot": { "id": "data" } }, + { "path": "$LOCATION(ApplicationsPerformance)/affine/config", "owner": { "user": "apps" }, "snapshot": { "id": "data" } }, + { "path": "$LOCATION(ApplicationsPerformance)/affine/postgres_data", "owner": { "user": "netdata", "group": "docker" }, "snapshot": { "id": "db" } } + ], + "app_values": { + "affine": { + "db_password": "$RANDOM_STRING(7)", + "redis_password": "$RANDOM_STRING(7)", + "additional_envs": [] + }, + "network": { + "web_port": { + "bind_mode": "published", + "port_number": 30169 + } + }, + "storage": { + "config": "$HOST_PATH($LOCATION(ApplicationsPerformance)/affine/config)", + "uploads": "$HOST_PATH($LOCATION(Documents)/affine)", + "postgres_data": "$HOST_PATH($LOCATION(ApplicationsPerformance)/affine/postgres_data)" + }, + "resources": { + "limits": { + "cpus": 2, + "memory": "$MEMORY(10%, 4096)" + } + } + } +} \ No newline at end of file