Commit Graph

3663 Commits

Author SHA1 Message Date
github-actions[bot]
a1dd7fa00d Delete dagu (ct) after migration to ProxmoxVE (#1716)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-04-18 19:09:52 +00:00
CanbiZ (MickLesk)
35e4965c9a refactor(clickhouse): use fetch_and_deploy_gh_release and check_for_gh_release
- Replace custom git clone + version tracking with fetch_and_deploy_gh_release tarball mode
- Replace manual version comparison with check_for_gh_release in update script
- Remove git from dependencies (no longer needed for tarball download)
- Version file ~/.clickstack now managed by tools.func
2026-04-17 12:45:50 +02:00
CanbiZ (MickLesk)
572659a6c5 fix(clickhouse): upgrade HyperDX from v1.x to v2.x
- Switch tag format from hyperdx@* to @hyperdx/app@* (v2.x releases)
- Remove @types/hyperdx__lucene workaround (fixed in v2.x)
- Fix API build path: dist/index.js -> build/index.js
- Use next start instead of standalone server for app
- Add IS_LOCAL_APP_MODE for auth-free local deployment
- Add DEFAULT_SOURCES/DEFAULT_CONNECTIONS for auto-provisioning
- Update script: fresh clone approach for major version changes
- Add corepack setup to update script for yarn version changes
2026-04-17 12:01:51 +02:00
CanbiZ (MickLesk)
55372d21fc fix(clickhouse): delete yarn.lock entirely to bypass broken @types/lucene alias
Yarn Berry caches resolution descriptors in yarn.lock in a multi-line
block format that sed line-deletion cannot properly handle. The
@types/hyperdx__lucene -> npm:@types/lucene alias persists across all
partial cleanup attempts. Deleting yarn.lock forces a fresh resolution
from package.json only, which is safe for a build-from-source install.
2026-04-17 11:45:47 +02:00
CanbiZ (MickLesk)
e41e480466 fix(clickhouse): properly strip @types/hyperdx__lucene from yarn.lock
- Use sed to remove all lines referencing the alias from yarn.lock
  (both block headers and inline workspace dependency refs)
- Also strip @types/lucene resolution target (package doesn't exist)
- Remove .yarn/install-state.gz to clear Yarn Berry cached state
- Keep node -e for package.json cleanup (devDeps + resolutions)
2026-04-17 11:42:37 +02:00
CanbiZ (MickLesk)
7ba0de6ef0 fix(clickhouse): also strip @types/hyperdx__lucene from yarn.lock
Removing from packages/app/package.json devDependencies alone is not
enough — Yarn Berry still resolves the alias from yarn.lock entries.
sed removes all yarn.lock lines referencing the broken package.
2026-04-17 10:06:14 +02:00
CanbiZ (MickLesk)
e5e3958985 fix(slink): fix DB init order — migrations for roles, schema:update for event_store
- Event store migrations use PostgreSQL-specific SQL (SERIAL, UUID) that
  fails on SQLite — replaced with doctrine:schema:update --force
- Run messenger:setup-transports BEFORE event_store schema to avoid
  messenger_messages table conflict
- Read model migrations (--em=read_model) include role seeding (ROLE_USER,
  ROLE_ADMIN) which doctrine:schema:create skips
- Fix default_credentials in json to match script (admin@slink.local)
2026-04-17 10:03:42 +02:00
CanbiZ (MickLesk)
80c5d29466 fix(slink): use lexik:jwt:generate-keypair instead of manual openssl, fix key permissions
- Manual openssl keys were root:600, unreadable by PHP-FPM (www-data)
- lexik:jwt:generate-keypair sets correct ownership/permissions automatically
- chmod 644 private.pem as safety net
- Remove redundant duplicate call with --skip-if-exists
2026-04-17 09:43:40 +02:00
CanbiZ (MickLesk)
239dbd1d7d fix(slink): restart caddy after config write, add API_URL to client env
- apt auto-starts caddy with default config (port 80); systemctl enable --now
  is a no-op if already running, so new Caddyfile (:8080) was never loaded
- client falls back to http://localhost:8080 without explicit API_URL; add
  API_URL=http://127.0.0.1:8080 to /etc/default/slink-client
2026-04-17 09:38:04 +02:00
CanbiZ (MickLesk)
129b041f9d fix(clickhouse): remove broken @types/hyperdx__lucene devDep before yarn install
v1.10.1 packages/app/package.json contains '@types/hyperdx__lucene': 'npm:@types/lucene'
but @types/lucene does not exist on npm (404), causing yarn install --immutable to fail.
Remove the devDependency via node patch before install and drop --immutable flag.
2026-04-17 09:12:29 +02:00
CanbiZ (MickLesk)
2834e6b7fa fix(papermark): add RESEND_API_KEY placeholder, document magic-link login workaround 2026-04-17 09:05:49 +02:00
CanbiZ (MickLesk)
f902c9fe2f fix(papermark): patch middleware to allow IP-based access in self-hosted mode
isCustomDomain() in middleware.ts treats any non-localhost/papermark.*/vercel
host as a custom domain in production, causing DomainMiddleware to redirect
/ to https://www.papermark.com when no Redis entry exists.
Fix: patch middleware.ts before build to exclude IP addresses from custom
domain detection.
2026-04-17 08:55:30 +02:00
CanbiZ (MickLesk)
cc06daf580 fix(papermark): add SLACK_CLIENT_ID/SECRET placeholder env vars for build 2026-04-17 08:49:25 +02:00
CanbiZ (MickLesk)
98791d1427 fix(papermark): add missing EE env vars, increase RAM to 4096, add NODE_OPTIONS for build
- HANKO_API_KEY and NEXT_PUBLIC_HANKO_TENANT_ID are required at build time
  (module throws hard error if unset during page data collection)
- QSTASH_TOKEN, NEXT_PRIVATE_DOCUMENT_PASSWORD_KEY, NEXT_PRIVATE_VERIFICATION_SECRET
  added as placeholders/random values
- NODE_OPTIONS=--max-old-space-size=3584 for npm run build (Next.js OOM fix)
- RAM raised from 2048 to 4096 (Next.js build requires ~3.5GB heap)
2026-04-17 08:42:46 +02:00
CanbiZ (MickLesk)
b3691c0037 fix(matomo,papermark,slink): fix db access, creds path, build env, sqlite create
- matomo: move creds to /root/matomo.creds (out of webroot), keep tests/ dir,
  block dotfiles in Caddy (@blocked /.* pattern)
- papermark: add NEXT_PUBLIC_APP_BASE_HOST and NEXT_PUBLIC_WEBHOOK_BASE_HOST
  placeholder env vars to prevent undefined 'value' in has:host routes
  causing Next.js build failure
- slink: replace doctrine:database:create with touch for SQLite (getCreateDatabaseSQL
  not supported by SQLitePlatform)
2026-04-17 08:10:20 +02:00
CanbiZ (MickLesk)
efaeefd22d Remove Matomo node_modules cleanup; tweak SolidTime
Stop removing /opt/matomo/node_modules in Matomo install/upgrade scripts (leave tests removal intact). For SolidTime, set SESSION_SECURE_COOKIE=false and APP_FORCE_HTTPS=false in the generated .env (and append them if missing) to ease non-HTTPS/local installs. Also add a warning message in the SolidTime UI JSON instructing admins to verify new accounts via: php /opt/solidtime/artisan admin:user:verify YOUR@EMAIL.
2026-04-17 07:59:49 +02:00
CanbiZ (MickLesk)
3aebeb8c8c minor fixes 2026-04-17 07:44:01 +02:00
CanbiZ (MickLesk)
bf544e28e5 Merge branch 'main' of https://github.com/community-scripts/ProxmoxVED 2026-04-17 07:21:08 +02:00
CanbiZ (MickLesk)
1a781eded7 minor fixes overall 2026-04-17 07:21:03 +02:00
CrazyWolf13
a507ecef2a remove prod flag 2026-04-16 08:12:52 +02:00
Tobias
f67f680c97 fix: repo 2026-04-16 07:30:26 +02:00
CanbiZ (MickLesk)
443481f7e6 Update clickhouse-install.sh 2026-04-15 14:56:58 +02:00
CanbiZ (MickLesk)
819c5811db Bump SolidTime VM resources; call setup_mariadb
Increase SolidTime defaults in ct/solidtime.sh (CPU from 2 to 4, RAM from 2048 to 4096) to provide more capacity by default. In install/matomo-install.sh, invoke setup_mariadb before creating the Matomo DB to ensure the MariaDB service is installed/configured prior to running MARIADB_DB_NAME/MARIADB_DB_USER setup.
2026-04-15 12:56:41 +02:00
CanbiZ (MickLesk)
2bf3d73ef6 fix(papermark): replace sed with node to patch next.config has-host item 2026-04-15 08:43:52 +02:00
CanbiZ (MickLesk)
98ec9ddc39 Remove BentoPDF and YOURLS scripts
Delete container templates and installer scripts for BentoPDF and YOURLS. Removed ct/bentopdf.sh, ct/yourls.sh, install/bentopdf-install.sh, and install/yourls-install.sh which contained container build/install logic (nginx, Node/PNPM steps for BentoPDF and PHP/MariaDB/nginx setup for YOURLS). This cleans up deprecated or duplicated setup scripts.
2026-04-15 08:38:50 +02:00
CanbiZ (MickLesk)
896fdc43db Add optional ClickStack observability stack
Introduce an optional ClickStack observability install (HyperDX UI + OTel Collector + MongoDB). Adds a Whiptail prompt to enable ClickStack and adjusts default resource suggestions when selected. Updates ct/clickhouse.sh to include observability tag, author, update logic to auto-update HyperDX and the OTel Collector, and prints appropriate access URLs. Extends install/clickhouse-install.sh to install dependencies, initialize ClickHouse schemas for logs/traces/sessions, deploy the OTel Collector with a ClickHouse exporter, clone/build HyperDX, create systemd services (clickstack-otel, clickstack-api, clickstack-app), and enable them. Updates json/clickhouse.json to include an informational note about the optional ClickStack requirements and usage.
2026-04-14 21:11:14 +02:00
CanbiZ (MickLesk)
94297d0f77 Update akaunting-install.sh 2026-04-14 21:02:11 +02:00
CanbiZ (MickLesk)
28a192440e Add ClickHouse CT template and installer
Introduce ClickHouse support by adding a container template (ct/clickhouse.sh), an installer script (install/clickhouse-install.sh) and app metadata (json/clickhouse.json). The installer configures ClickHouse to listen on 0.0.0.0, restarts the service, and performs OS update, networking checks, MOTD/customization and cleanup. Metadata declares default resources (2 CPU, 4GB RAM, 10GB disk), interface port 8123, documentation/website links, and a warning about the default user having no password.
2026-04-14 20:48:53 +02:00
CanbiZ (MickLesk)
ae327fc88e fix(akaunting): remove --seed from migrate (Akaunting uses web wizard) 2026-04-14 20:41:26 +02:00
CanbiZ (MickLesk)
15df6ffbf0 fix(akaunting): add empty APP_KEY= to .env template
key:generate --force needs an existing APP_KEY= line to replace.
2026-04-14 20:38:30 +02:00
CanbiZ (MickLesk)
43e7892b0f fix(akaunting): add --force to artisan key:generate
Without --force, Laravel Prompts tries an interactive confirmation
that fails in a non-interactive script, leaving APP_KEY unset (HTTP 500).
2026-04-14 20:37:46 +02:00
CanbiZ (MickLesk)
4723dcbc81 fix(papermark): patch invalid next.config has item before build
Papermark v0.22.0 has an invalid has:{type:'host'} without a value
in next.config, causing next build to fail. Patch it to add value.
2026-04-14 19:51:59 +02:00
CanbiZ (MickLesk)
5b26bd2f29 fix(papermark): add missing Prisma env vars and bump PG to 17
Papermark's Prisma schema requires POSTGRES_PRISMA_URL and
POSTGRES_PRISMA_URL_NON_POOLING. Also bump PostgreSQL to 17.
2026-04-14 19:43:53 +02:00
CanbiZ (MickLesk)
068f76efdf fix(akaunting): downgrade Node to 20 and add python3 for node-sass
node-sass requires node-gyp which needs python3, and has no
prebuilt binaries for Node 22. Downgrade to Node 20 and add
python3 dependency to fix npm install failure.
2026-04-14 19:40:06 +02:00
CanbiZ (MickLesk)
a7c184b5e9 Update akaunting-install.sh 2026-04-14 17:13:02 +02:00
CanbiZ (MickLesk)
f1bc83f059 Update certimate-install.sh 2026-04-14 17:09:38 +02:00
CanbiZ (MickLesk)
0af4707d14 Update akaunting-install.sh 2026-04-14 16:48:16 +02:00
doge0420
1511cfde1c fix(mini-qr): correct urls 2026-04-14 15:28:19 +02:00
tremor021
41bae875cb transmute: bump node to 25 2026-04-14 10:34:39 +02:00
tremor021
f1f1b7da41 Fix Micks stupid app 2026-04-13 23:16:48 +02:00
Tobias
ae2923ac76 dashy: fix node 2026-04-13 21:40:29 +02:00
Tobias
31a7493564 dashy: fix repo 2026-04-13 21:18:35 +02:00
Tobias
e0c76d6ef8 dashy: add prebuild 2026-04-13 21:18:17 +02:00
CanbiZ (MickLesk)
f154e484e7 Switch Blinko to bun for runtime and seed
Replace Node.js usage with bun across install and control scripts: run /opt/blinko/dist/seed.js with bun during install and update, and start the service with bun using --env-file. Also remove the hardcoded PORT from the generated .env. These changes unify the runtime, ensure migrations and seeding use bun, and load environment variables directly when starting the service.
2026-04-13 20:06:31 +02:00
CanbiZ (MickLesk)
7f1b977e18 Improve build/install scripts for multiple apps
Switch development builds to production and harden install/update steps across several apps.

- Akaunting: use `npm run production` instead of `npm run dev` in both install and update scripts to produce production assets.

- Blinko: make bun installs run with `--unsafe-perm`, run `bun run build:web` and `bun run build:seed`, copy built public assets into `/opt/blinko/server/public`, run prisma migrations, and execute the generated seed script. Add PORT and NEXT_PUBLIC_BASE_URL to the .env. Update the systemd service to use WorkingDirectory `/opt/blinko/server` and start the app with `node /opt/blinko/dist/index.js`.

- InvoiceShelf & SolidTime: stop capturing APP_KEY via `php artisan key:generate --show` + sed; instead run `php artisan key:generate` during install after composer install. SolidTime also runs `php artisan storage:link` after build. These changes simplify key generation and ensure proper storage linking.

Overall these updates ensure production-ready builds, proper artifact placement, and correct runtime configuration for services.
2026-04-13 17:13:39 +02:00
CanbiZ (MickLesk)
b2af68d233 Use explicit app names in install scripts
Replace the generic ${APP} placeholder with explicit, consistently capitalized application names in install scripts to produce clearer log output. Affected scripts: install/{akaunting,blinko,dagu,gogs,invoiceshelf,matomo,papermark,rss-bridge,solidtime}-install.sh. Changes update msg_info and msg_ok messages only.
2026-04-13 16:44:38 +02:00
CanbiZ (MickLesk)
0dbf0b06ae Switch to Bun runtime and update install scripts
Install Bun during setup and replace npm/npx calls with bun/bunx. Added Bun install (sets BUN_INSTALL, runs bun install script, and symlinks bun and bunx to /usr/local/bin) in install/blinko-install.sh. Updated ct/blinko.sh and install/blinko-install.sh to use `bun install`, `bunx prisma ...`, and `bun run build` instead of npm/npx commands for dependency install, Prisma generate/migrate, and build steps.
2026-04-13 16:32:47 +02:00
CanbiZ (MickLesk)
e3d2cbb566 Add container templates and installers for apps
Add new ProxmoxVED container templates (ct/*.sh), install scripts (install/*.sh) and metadata (json/*.json) for multiple applications: Akaunting, Blinko, Certimate, Dagu, Gogs, InvoiceShelf, Matomo, Papermark, RSS-Bridge, SolidTime and WhoDB. Each ct script includes update logic and deployment helpers; install scripts handle dependency installation, service creation (systemd), DB setup, and Caddy/PHP/Node/Postgres configuration where applicable. JSON entries provide UI metadata, resource defaults and access ports for each app.
2026-04-13 16:30:41 +02:00
CanbiZ (MickLesk)
c5bbc956a1 Improve setup: verification and DB helpers
Refactor ente-install.sh to make first-time setup more robust: update ente-get-verification to use a new log pattern and broader fallback, add run_psql and run_psql_exec helpers for consistent sudo-psql usage, implement a retry loop when polling for the verification code, and improve prompts/error messages. Switch admin whitelisting to use the numeric user_id (and verify existence) instead of email in museum.yaml. Simplify and harden subscription upgrade logic to use the new DB helpers and ensure inserts/updates run under the postgres user. Miscellaneous messaging and minor formatting tweaks.
2026-04-13 14:51:01 +02:00
CanbiZ (MickLesk)
8dff6a908c typo 2026-04-13 14:13:14 +02:00