From 7df0c7ae78f756a6165b1e6be9645c729c86f52b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 25 Nov 2026 11:29:47 +0000 Subject: [PATCH] Delete formbricks (ct) after migration to ProxmoxVE --- ct/formbricks.sh | 93 ----------------------- install/formbricks-install.sh | 135 ---------------------------------- json/formbricks.json | 54 -------------- 3 files changed, 282 deletions(-) delete mode 100644 ct/formbricks.sh delete mode 100644 install/formbricks-install.sh delete mode 100644 json/formbricks.json diff --git a/ct/formbricks.sh b/ct/formbricks.sh deleted file mode 100644 index 98db17da65..0000000000 --- a/ct/formbricks.sh +++ /dev/null @@ -1,93 +0,0 @@ -#!/usr/bin/env bash -_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/DevScripts/main" -_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func" -source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func") -# Copyright (c) 2021-2026 community-scripts ORG -# Author: MickLesk (CanbiZ) -# License: MIT | https://github.com/community-scripts/DevScripts/raw/main/LICENSE -# Source: https://github.com/formbricks/formbricks - -APP="Formbricks" -var_tags="${var_tags:-survey;feedback;forms}" -var_cpu="${var_cpu:-4}" -var_ram="${var_ram:-12288}" -var_disk="${var_disk:-20}" -var_os="${var_os:-debian}" -var_version="${var_version:-13}" -var_arm64="${var_arm64:-yes}" -var_unprivileged="${var_unprivileged:-1}" -var_testurl="${var_testurl:-https://github.com/community-scripts/DevScripts/issues/2407}" - -header_info "$APP" -variables -color -catch_errors - -function update_script() { - header_info - check_container_storage - check_container_resources - - if [[ ! -d /opt/formbricks ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - - if check_for_gh_release "spicedb" "authzed/spicedb"; then - msg_info "Stopping SpiceDB" - systemctl stop spicedb - msg_ok "Stopped SpiceDB" - - fetch_and_deploy_gh_release "spicedb" "authzed/spicedb" "binary" - - msg_info "Migrating SpiceDB Datastore" - set -a && source /opt/formbricks_data/spicedb.env && set +a - $STD spicedb datastore migrate head - msg_ok "Migrated SpiceDB Datastore" - - msg_info "Starting SpiceDB" - systemctl start spicedb - msg_ok "Started SpiceDB" - fi - - if check_for_gh_release "formbricks" "formbricks/formbricks"; then - msg_info "Stopping Formbricks" - systemctl stop formbricks - msg_ok "Stopped Formbricks" - - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "formbricks" "formbricks/formbricks" "tarball" - NODE_VERSION="24" NODE_MODULE="pnpm@$(jq -r '.packageManager | split("@")[1]' /opt/formbricks/package.json)" setup_nodejs - - msg_info "Building Formbricks (Patience)" - cd /opt/formbricks - sed -i "s/\"version\": \"0.0.0\"/\"version\": \"$(cat ~/.formbricks)\"/" apps/web/package.json - sed -i 's/^const nextConfig = {$/&\n typescript: { ignoreBuildErrors: true },/' apps/web/next.config.mjs - touch apps/web/.env - $STD pnpm install --ignore-scripts --frozen-lockfile - $STD sh apps/web/scripts/docker/read-secrets.sh pnpm build --filter=@formbricks/web... - cp -r apps/web/.next/static apps/web/.next/standalone/apps/web/.next/ - cp -r apps/web/public apps/web/.next/standalone/apps/web/ - msg_ok "Built Formbricks" - - msg_info "Migrating Formbricks Database" - set -a && source /opt/formbricks_data/.env && set +a - $STD node packages/database/dist/scripts/apply-migrations.js - $STD node apps/web/dist/authzed-cli/index.mjs upgrade prepare - msg_ok "Migrated Formbricks Database" - - msg_info "Starting Formbricks" - systemctl start formbricks - msg_ok "Started Formbricks" - msg_ok "Updated successfully!" - fi - exit -} - -start -build_container -description - -msg_ok "Completed Successfully!\n" -echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" -echo -e "${INFO}${YW}Access it using the following URL:${CL}" -echo -e "${GATEWAY}${BGN}http://${IP}:3000${CL}" diff --git a/install/formbricks-install.sh b/install/formbricks-install.sh deleted file mode 100644 index 902634871d..0000000000 --- a/install/formbricks-install.sh +++ /dev/null @@ -1,135 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (c) 2021-2026 community-scripts ORG -# Author: MickLesk (CanbiZ) -# License: MIT | https://github.com/community-scripts/DevScripts/raw/main/LICENSE -# Source: https://github.com/formbricks/formbricks - -source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" -color -verb_ip6 -catch_errors -setting_up_container -network_check -update_os - -msg_info "Installing Dependencies" -$STD apt install -y valkey-server -sed -i 's/^appendonly no/appendonly yes/' /etc/valkey/valkey.conf -systemctl restart valkey-server -msg_ok "Installed Dependencies" - -PG_VERSION="18" PG_MODULES="pgvector" setup_postgresql -PG_DB_NAME="formbricks" PG_DB_USER="formbricks" PG_DB_EXTENSIONS="vector" setup_postgresql_db -# setup_postgresql_db keeps an already set PG_DB_PASS, so the SpiceDB role gets the same password -PG_DB_NAME="spicedb" PG_DB_USER="spicedb" setup_postgresql_db - -fetch_and_deploy_gh_release "spicedb" "authzed/spicedb" "binary" -fetch_and_deploy_gh_release "formbricks" "formbricks/formbricks" "tarball" -NODE_VERSION="24" NODE_MODULE="pnpm@$(jq -r '.packageManager | split("@")[1]' /opt/formbricks/package.json)" setup_nodejs - -msg_info "Building Formbricks (Patience)" -cd /opt/formbricks -# CI stamps the release here, at 0.0.0 the app offers its own release as an upgrade; before pnpm install, or pnpm build reinstalls -sed -i "s/\"version\": \"0.0.0\"/\"version\": \"$(cat ~/.formbricks)\"/" apps/web/package.json -# type-checking the released tag needs about 6 GB on top of the Turbopack compile -sed -i 's/^const nextConfig = {$/&\n typescript: { ignoreBuildErrors: true },/' apps/web/next.config.mjs -# next build stats apps/web/.env, a symlink to the repo root .env that the tarball does not ship -touch apps/web/.env -$STD pnpm install --ignore-scripts --frozen-lockfile -# upstream's image build wrapper supplies placeholder values for the build-time env check, so no instance URL is baked into the bundle -$STD sh apps/web/scripts/docker/read-secrets.sh pnpm build --filter=@formbricks/web... -cp -r apps/web/.next/static apps/web/.next/standalone/apps/web/.next/ -cp -r apps/web/public apps/web/.next/standalone/apps/web/ -msg_ok "Built Formbricks" - -msg_info "Configuring Formbricks" -mkdir -p /opt/formbricks_data -AUTHZED_TOKEN=$(openssl rand -hex 32) -cat </opt/formbricks_data/.env -NODE_ENV=production -WEBAPP_URL=http://${LOCAL_IP}:3000 -NEXTAUTH_URL=http://${LOCAL_IP}:3000 -NEXTAUTH_SECRET=$(openssl rand -hex 32) -ENCRYPTION_KEY=$(openssl rand -hex 32) -CRON_SECRET=$(openssl rand -hex 32) -DATABASE_URL=postgresql://formbricks:${PG_DB_PASS}@localhost:5432/formbricks?schema=public -REDIS_URL=redis://localhost:6379 -AUTHZED_ENABLED=true -AUTHZED_ENDPOINT=127.0.0.1:50051 -AUTHZED_TOKEN=${AUTHZED_TOKEN} -AUTHZED_SYSTEM_KEY=formbricks -AUTHZED_INSECURE=true -AUTHZED_CONSISTENCY=fully_consistent -HUB_API_URL=http://127.0.0.1:8080 -HUB_API_KEY=$(openssl rand -hex 32) -CUBEJS_API_URL=http://127.0.0.1:4000 -CUBEJS_API_SECRET=$(openssl rand -hex 32) -EMAIL_VERIFICATION_DISABLED=1 -PASSWORD_RESET_DISABLED=1 -TELEMETRY_DISABLED=1 -EOF -cat </opt/formbricks_data/spicedb.env -SPICEDB_DATASTORE_ENGINE=postgres -SPICEDB_DATASTORE_CONN_URI=postgres://spicedb:${PG_DB_PASS}@localhost:5432/spicedb?sslmode=disable -SPICEDB_GRPC_PRESHARED_KEY=${AUTHZED_TOKEN} -SPICEDB_GRPC_ADDR=127.0.0.1:50051 -SPICEDB_METRICS_ADDR=127.0.0.1:9090 -SPICEDB_TELEMETRY_ENDPOINT= -SPICEDB_LOG_LEVEL=warn -EOF -chmod 600 /opt/formbricks_data/.env /opt/formbricks_data/spicedb.env -msg_ok "Configured Formbricks" - -msg_info "Setting up SpiceDB" -set -a && source /opt/formbricks_data/spicedb.env && set +a -$STD spicedb datastore migrate head -cat </etc/systemd/system/spicedb.service -[Unit] -Description=SpiceDB -After=network.target postgresql.service - -[Service] -Type=simple -User=root -EnvironmentFile=/opt/formbricks_data/spicedb.env -ExecStart=/usr/bin/spicedb serve -Restart=on-failure -RestartSec=5 - -[Install] -WantedBy=multi-user.target -EOF -systemctl enable -q --now spicedb -msg_ok "Set up SpiceDB" - -msg_info "Migrating Formbricks Database" -set -a && source /opt/formbricks_data/.env && set +a -$STD node packages/database/dist/scripts/apply-migrations.js -$STD node apps/web/dist/authzed-cli/index.mjs upgrade prepare -msg_ok "Migrated Formbricks Database" - -msg_info "Creating Service" -cat </etc/systemd/system/formbricks.service -[Unit] -Description=Formbricks -After=network.target postgresql.service valkey-server.service spicedb.service - -[Service] -Type=simple -User=root -WorkingDirectory=/opt/formbricks/apps/web/.next/standalone -EnvironmentFile=/opt/formbricks_data/.env -ExecStart=/usr/bin/node apps/web/server.js -Restart=on-failure -RestartSec=5 - -[Install] -WantedBy=multi-user.target -EOF -systemctl enable -q --now formbricks -msg_ok "Created Service" - -motd_ssh -customize -cleanup_lxc diff --git a/json/formbricks.json b/json/formbricks.json deleted file mode 100644 index 1cd48eb2a2..0000000000 --- a/json/formbricks.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "Formbricks", - "slug": "formbricks", - "categories": [ - 25 - ], - "date_created": "2026-10-07", - "type": "ct", - "platforms": ["pve"], - "updateable": true, - "privileged": false, - "interface_port": 3000, - "documentation": "https://formbricks.com/docs/self-hosting/overview", - "website": "https://formbricks.com/", - "repository": "https://github.com/formbricks/formbricks", - "architectures": [ - "amd64", - "arm64" - ], - "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/formbricks.webp", - "description": "Formbricks is an open-source survey and experience management platform and an alternative to Qualtrics. It runs link, website and in-app surveys with logic and multiple languages, and passes responses on through webhooks, the API and integrations such as Slack, Notion and Zapier.", - "install_methods": [ - { - "type": "default", - "script": "ct/formbricks.sh", - "config_path": "/opt/formbricks_data/.env", - "resources": { - "cpu": 4, - "ram": 12288, - "hdd": 20, - "os": "Debian", - "version": "13" - } - } - ], - "default_credentials": { - "username": null, - "password": null - }, - "notes": [ - { - "text": "There is no default account: the first sign-up becomes the administrator and closes public sign-up. Create it right after the install.", - "type": "warning" - }, - { - "text": "Logins and survey links are built from WEBAPP_URL and NEXTAUTH_URL in /opt/formbricks_data/.env. Change both behind a reverse proxy or after an IP change, then run systemctl restart formbricks.", - "type": "info" - }, - { - "text": "File uploads need S3-compatible storage (S3_* settings) and emails need SMTP (SMTP_* and MAIL_FROM). Add them to /opt/formbricks_data/.env.", - "type": "info" - } - ] -}