8497 Commits

Author SHA1 Message Date
Patryk Mikołajczyk
bbcdf2c446 Update install/calibre-web-install.sh
Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com>
2026-02-10 20:29:31 +01:00
Patryk Mikołajczyk
f9e3a931ff Update install/calibre-web-install.sh
Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com>
2026-02-10 20:29:18 +01:00
mikolaj92
f2299ee941 fix(calibre-web): align review feedback on installer and defaults 2026-02-10 17:23:59 +01:00
Patryk Mikołajczyk
b8e23d9a54 Update calibre-web-install.sh 2026-02-10 17:18:23 +01:00
mikolaj92
996f551ea4 style: match greptile heredoc redirection format 2026-02-10 11:08:14 +01:00
mikolaj92
8d7d6ee5f3 fix: apply reviewer suggestion for service creation block 2026-02-10 11:06:23 +01:00
mikolaj92
b672954401 fix: remove unnecessary msg_info/msg_ok block for service creation 2026-02-10 11:04:10 +01:00
mikolaj92
36a3f33031 fix: address remaining heredoc and trailing blank line comments 2026-02-10 11:00:19 +01:00
mikolaj92
7aafdd793a fix: remove remaining inline comments from ct script 2026-02-10 10:57:19 +01:00
mikolaj92
cf7b97bcdc fix: apply remaining CrazyWolf13 inline suggestions 2026-02-10 10:49:16 +01:00
mikolaj92
9c17e368b1 fix: address CrazyWolf13 review feedback
- Remove msg_info before mkdir (no need for msg block)
-  kept only for apt/pip (these generate stdout)

Addressed reviewer comments from CrazyWolf13 (2026-02-10)
2026-02-10 08:41:15 +01:00
mikolaj92
f89fe2da5c fix: address final 4 review comments
- Fix URLs: ProxmoxVE → ProxmoxVED (build.func, license)
- Fix APP value: Calibre-Web → calibre-web (lowercase slug)
- Fix placeholder: ${APP} → Calibre-Web in msg_error
- Fix error suppression: || true → 2>/dev/null

Resolves remaining review comments from greptile-apps[bot]
2026-02-10 07:23:51 +01:00
mikolaj92
89676fcfc7 fix: remove all comments from ct/calibre-web.sh (header only)
Remove all section/block comments beyond standardized header per repo policy:
- APP CONFIGURATION section
- INITIALIZATION section
- UPDATE SCRIPT detailed comments
- MAIN EXECUTION section
- COMPLETION MESSAGE section

Resolves: Comments violate script policy (ct/*.sh header-only comments)
2026-02-10 07:17:20 +01:00
mikolaj92
0622ec6218 fix: address remaining PR review feedback
- Remove all section comments (beyond standardized header)
- Fix heredoc: cat <<EOF >file → cat <<EOF\n>file
- Replace apt-get with apt in cleanup
- Add missing cleanup_lxc call at end

Resolves remaining review comments from greptile-apps[bot]
2026-02-10 07:10:41 +01:00
mikolaj92
ac4dab5a66 fix: address PR review feedback
- Rename service: cps.service → calibre-web.service (consistency)
- Fix logo URL: /webp/ → /webp/flat/ (required CDN format)
- Remove git submodule: skills/qmd (accidental addition)

Resolves review comments from greptile-apps[bot]
2026-02-10 07:03:34 +01:00
mikolaj92
3145790474 feat: add Calibre-Web container script
- Web-based eBook library management
- Mobile-responsive interface with user management
- Calibre integration for format conversion (EPUB→AZW3 for Kindle)
- Tested on Debian 13 LXC (CT240)

Technical details:
- Base OS: Debian 13 (2 CPU, 2GB RAM, 8GB disk, port 8083)
- Flask-Limiter 3.x (4.x incompatible)
- --break-system-packages for PEP 668 compliance
- Default credentials: admin/admin123
2026-02-09 22:03:23 +01:00
CanbiZ (MickLesk)
35833c402a Update microcode.sh
Some checks failed
Update GitHub Versions (New) / update-github-versions (push) Has been cancelled
Crawl Versions from newreleases.io / crawl-versions (push) Has been cancelled
Crawl Versions from github / crawl-versions (push) Has been cancelled
Update Versions from GitHub / update-versions (push) Has been cancelled
Stale PR Management / stale-prs (push) Has been cancelled
Cleanup Branches (Merged or Closed) / cleanup (push) Has been cancelled
2026-02-09 19:17:54 +01:00
CanbiZ (MickLesk)
c8bf9059a9 Merge branch 'main' of https://github.com/community-scripts/ProxmoxVED 2026-02-09 19:15:31 +01:00
CanbiZ (MickLesk)
5054d34a4a Create microcode.sh 2026-02-09 19:15:24 +01:00
MickLesk
7915237622 fix(telemetry): fix typo 'sucess' -> 'success' everywhere
Some checks failed
Update GitHub Versions (New) / update-github-versions (push) Has been cancelled
Update Versions from GitHub / update-versions (push) Has been cancelled
2026-02-09 18:47:34 +01:00
MickLesk
b5960db4f9 fix(telemetry): fix migration - map 'done' to 'sucess', handle ct_type=0, detect duplicates 2026-02-09 18:46:26 +01:00
MickLesk
6a77427448 fix(telemetry): add PocketBase authentication to migration script 2026-02-09 18:41:55 +01:00
MickLesk
5b43016594 fix(telemetry): support PB_URL and PB_TARGET_COLLECTION env vars for Coolify 2026-02-09 18:38:59 +01:00
MickLesk
2ab7de60b2 chore(telemetry): remove docker-compose.yml (not needed for Coolify) 2026-02-09 18:36:35 +01:00
MickLesk
0226a043b8 feat(telemetry): add caching, alerts, migration & dashboard improvements
- Add Redis/in-memory caching layer (cache.go)
- Add SMTP alerting for high failure rates (alerts.go)
- Add data migration script from old API (migrate.go)
- Add docker-compose.yml for easy deployment
- Move dashboard to / with redirect from /dashboard
- Add dark/light mode toggle
- Add error analysis and failed apps statistics
- Add PVE version and LXC/VM type stats
- Add /metrics Prometheus endpoint
- Add /api/records pagination endpoint
- Add CSV export functionality
- Enhanced healthcheck with PB connection status

New ENV vars:
- Cache: ENABLE_CACHE, CACHE_TTL_SECONDS, ENABLE_REDIS, REDIS_URL
- Alerts: ALERT_ENABLED, SMTP_*, ALERT_FAILURE_THRESHOLD, etc.
- Migration: RUN_MIGRATION, MIGRATION_REQUIRED, MIGRATION_SOURCE_URL
2026-02-09 18:33:33 +01:00
CanbiZ (MickLesk)
389708a33c Update linkding-install.sh 2026-02-09 17:25:07 +01:00
CanbiZ (MickLesk)
897707645f add static go dashboard 2026-02-09 17:13:08 +01:00
CanbiZ (MickLesk)
88a540e457 Support PATCH updates for telemetry status
Send only changing fields for status updates and add server-side update flow.

- Trimmed telemetry JSON payload in misc/api.func to include only status, error, and exit_code (removed static fields and pve_version) so updates are minimal.
- Added TelemetryStatusUpdate type and new PBClient methods: FindRecordByRandomID, UpdateTelemetryStatus, and UpsertTelemetry in misc/data/service.go. UpsertTelemetry creates a record for status="installing", otherwise finds the record by random_id and PATCHes only status/error/exit_code (fallbacks to create if not found).
- Relaxed validation logic in validate(): detect updates (status != "installing") and skip certain strict numeric checks for update requests while keeping required fields and other validations.
- Main handler now calls UpsertTelemetry instead of CreateTelemetry and logs generic errors.

These changes allow idempotent, minimal updates to existing telemetry records and avoid repeatedly sending/storing unchanged metadata.
2026-02-09 17:07:30 +01:00
CanbiZ (MickLesk)
878672a8df Update api.func 2026-02-09 17:04:15 +01:00
CanbiZ (MickLesk)
5aa85ace6a Add telemetry debug/logging and failure report
Enhance post_update_to_api robustness and observability: add debug traces for entry, missing curl, duplicate submissions, DIAGNOSTICS/RANDOM_UUID checks, payload/URL output, and HTTP response code capture; make curl non-blocking and tolerant of failures. Also invoke post_update_to_api on installation failure so build/install errors are reported to telemetry. Includes a small comment glyph fix in build.func. Changes keep telemetry as a silent, best-effort path that won't break script execution.
2026-02-09 16:53:25 +01:00
CanbiZ (MickLesk)
ce375b02aa Refactor telemetry checks, relax method validation
Reformat telemetry pre-checks in misc/api.func for clearer multi-line condition handling and remove stray whitespace around the curl response logging. Tweak misc/build.func comment line (minor encoding/visual cleanup). In misc/data/service.go remove the strict allowedMethod map and its validation so the 'method' field is treated as optional/flexible; keep sanitization and numeric validations unchanged. These changes improve readability and allow custom method values without breaking behavior.
2026-02-09 16:51:51 +01:00
CanbiZ (MickLesk)
7c3688cd0a debug 2026-02-09 16:48:47 +01:00
CanbiZ (MickLesk)
bcc6bb9f5f Update build.func 2026-02-09 16:46:25 +01:00
CanbiZ (MickLesk)
4a8a4180d9 use https 2026-02-09 16:20:43 +01:00
CanbiZ (MickLesk)
fafdf88e6a Update build.func 2026-02-09 16:12:35 +01:00
CanbiZ (MickLesk)
313da7c00c Switch telemetry to ingest service
Replace direct PocketBase integration with a fire-and-forget telemetry ingest endpoint and tighten validation. misc/api.func: point to telemetry.community-scripts.org, add TELEMETRY_TIMEOUT, use DIAGNOSTICS=no opt-out, include random_id/NSAPP/status in payloads, unify LXC/VM POSTs, avoid blocking or failing scripts, remove PocketBase record lookup/patch logic. misc/data/service.go: update TelemetryIn/TelemetryOut schemas to match new payload, add stricter sanitization and enum/range validation, adjust hashing/deduplication usage, and update request logging to reflect nsapp/status. Overall: safer, non-blocking telemetry with improved schema validation and GDPR-friendly behavior.
2026-02-09 16:06:44 +01:00
CanbiZ (MickLesk)
7759b53297 Update Dockerfile 2026-02-09 15:53:43 +01:00
CanbiZ (MickLesk)
7bd2ba7b54 Add telemetry-ingest service and Docker updates
Introduce a new telemetry ingestion service (misc/data/service.go) that implements an HTTP server to accept telemetry payloads, validate and sanitize inputs, apply rate limiting, compute dedupe hashes, and forward records to PocketBase with token-based auth. Add module file (misc/data/go.mod) setting module telemetry-ingest and Go version 1.25.5. Update Dockerfile to use golang:1.25-alpine and remove baked-in environment defaults (so runtime envs are required), keeping the build stage and final CMD. These changes add the core ingestion logic, dependency module, and align the build image/version.
2026-02-09 15:53:11 +01:00
CanbiZ (MickLesk)
6fea133392 Merge branch 'main' of https://github.com/community-scripts/ProxmoxVED 2026-02-09 15:43:22 +01:00
CanbiZ (MickLesk)
7f0ca0f9d0 Add Dockerfile and move ingest service
Containerize the telemetry ingest service and reorganize source layout. Added misc/data/Dockerfile with a multi-stage build (golang:1.23-alpine -> alpine:3.23) to produce /app/telemetry-ingest, run as a non-root user, expose :8080, and provide default env vars for configuration (LISTEN_ADDR, MAX_BODY_BYTES, RATE_LIMIT_RPM, RATE_BURST, RATE_KEY_MODE, ENABLE_REQUEST_LOGGING, UPSTREAM_TIMEOUT_MS). Renamed misc/ingest.go to misc/data/service.go to reflect the new directory structure.
2026-02-09 15:38:29 +01:00
Push From Github
2d19b4ea90 Merge remote-tracking branch 'gitea/main' 2026-02-09 14:34:47 +00:00
CanbiZ (MickLesk)
0e16e3fd63 Update ingest.go 2026-02-09 15:34:22 +01:00
CanbiZ (MickLesk)
820d4551a1 Replace Go API with PocketBase; update docs
Remove the old Go/Mongo API (api/main.go, go.mod, go.sum, .env.example) and switch telemetry backend to PocketBase (http://db.community-scripts.org). Update documentation and flowcharts to reflect the PocketBase collection (_dev_telemetry_data), new REST endpoints (POST/PATCH/GET), field schema, and revised api.func integration (LXC/VM reporting and status updates). Misc scripts and helpers were adjusted (misc/api.func, misc/build.func, misc/error_handler.func) and a new misc/ingest.go was added. This consolidates telemetry to a hosted PocketBase instance and updates docs and integration points accordingly.
2026-02-09 15:34:17 +01:00
CanbiZ (MickLesk)
1eb0cc55ff Use system ICU module and remove local build
Stop backing up and restoring a locally built libicu and instead symlink the distribution ICU module (/usr/lib/x86_64-linux-gnu/mod_icu.so) into /opt/linkding/libicu.so. Add libsqlite3-mod-icu to dependencies and create the symlink after building the frontend. Remove the entire manual download/compile flow for the SQLite ICU extension and its related backups, simplifying installation and relying on the system-provided ICU extension.
2026-02-09 14:41:22 +01:00
CanbiZ (MickLesk)
d2bbeed04d fixes 2026-02-09 13:45:13 +01:00
CanbiZ (MickLesk)
cb5d763195 Merge branch 'main' of https://github.com/community-scripts/ProxmoxVED 2026-02-09 13:17:27 +01:00
CanbiZ (MickLesk)
e1d5a626b2 Update linkding-install.sh 2026-02-09 13:17:12 +01:00
CanbiZ (MickLesk)
5591552f2f
Merge pull request #1434 from ls-root/feature/dev-mode-configurator
feat(core): dev mode configurator menu
2026-02-09 13:10:07 +01:00
CanbiZ (MickLesk)
fdedcbe5f1 add nginx 2026-02-09 13:01:26 +01:00
CanbiZ (MickLesk)
b9b62c61b8 Update linkding-install.sh
Some checks failed
Update GitHub Versions (New) / update-github-versions (push) Has been cancelled
Crawl Versions from newreleases.io / crawl-versions (push) Has been cancelled
Crawl Versions from github / crawl-versions (push) Has been cancelled
2026-02-09 12:48:17 +01:00