From 58ce040ffebaeb46b2009c96ed03aa3d0642c5eb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 26 Nov 2026 13:20:21 +0000 Subject: [PATCH] Delete surfsense (ct) after migration to ProxmoxVE --- ct/surfsense.sh | 78 --------------------------- install/surfsense-install.sh | 101 ----------------------------------- json/surfsense.json | 58 -------------------- 3 files changed, 237 deletions(-) delete mode 100644 ct/surfsense.sh delete mode 100644 install/surfsense-install.sh delete mode 100644 json/surfsense.json diff --git a/ct/surfsense.sh b/ct/surfsense.sh deleted file mode 100644 index 5dc45ca070..0000000000 --- a/ct/surfsense.sh +++ /dev/null @@ -1,78 +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/MODSetter/SurfSense - -APP="SurfSense" -var_tags="${var_tags:-ai;documents;rag}" -var_cpu="${var_cpu:-4}" -var_ram="${var_ram:-4096}" -var_disk="${var_disk:-16}" -var_os="${var_os:-debian}" -var_version="${var_version:-13}" -var_arm64="${var_arm64:-no}" # upstream stages llama.cpp and opencode for linux-x64 only -var_unprivileged="${var_unprivileged:-1}" -var_testurl="${var_testurl:-https://github.com/community-scripts/DevScripts/issues/2518}" - -export var_surfsense_password="${var_surfsense_password:-}" - -header_info "$APP" -variables -color -catch_errors - -function update_script() { - header_info - check_container_storage - check_container_resources - - if [[ ! -d /opt/surfsense ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - - if check_for_gh_release "surfsense" "MODSetter/SurfSense"; then - msg_info "Stopping SurfSense" - systemctl stop surfsense - msg_ok "Stopped SurfSense" - - CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP="surfsense_local/backend/.venv surfsense_local/backend/models" fetch_and_deploy_gh_release "surfsense" "MODSetter/SurfSense" "tarball" - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "caddy" "caddyserver/caddy" "prebuild" "v$(grep -oP 'CADDY_IMAGE=caddy:\K[0-9.]+' /opt/surfsense/docker/surfsense/Dockerfile)" "/opt/caddy" "caddy_*_linux_$(arch_resolve).tar.gz" - NODE_VERSION="24" NODE_MODULE="$(jq -r '.packageManager' /opt/surfsense/surfsense_local/frontend/package.json)" setup_nodejs - PYTHON_VERSION="3.12" setup_uv - - msg_info "Building SurfSense" - cd /opt/surfsense/surfsense_local/frontend - $STD pnpm install --frozen-lockfile - VITE_API_BASE=/api VITE_SURFSENSE_RUNTIME=docker VITE_SURFSENSE_VERSION="$(cat ../VERSION)" $STD pnpm build - rm -rf node_modules - cd /opt/surfsense/surfsense_local/backend - $STD uv sync --frozen --no-dev - SURFSENSE_LOCAL_DATA_DIR=/opt/surfsense_data $STD .venv/bin/python scripts/fetch_embedding_model.py models - SURFSENSE_LOCAL_DATA_DIR=/opt/surfsense_data $STD .venv/bin/python scripts/fetch_docling_models.py models - SURFSENSE_LOCAL_DATA_DIR=/opt/surfsense_data $STD .venv/bin/python scripts/fetch_silero_vad.py models - cd /opt/surfsense/surfsense_local - $STD node runtimes/fetch-llamacpp.mjs --variant cpu --out electron/llamacpp - $STD node runtimes/opencode/stage.mjs - msg_ok "Built SurfSense" - - msg_info "Starting SurfSense" - systemctl start surfsense - msg_ok "Started SurfSense" - 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}${CL}" diff --git a/install/surfsense-install.sh b/install/surfsense-install.sh deleted file mode 100644 index 2bda12dea9..0000000000 --- a/install/surfsense-install.sh +++ /dev/null @@ -1,101 +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/MODSetter/SurfSense - -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 \ - libgomp1 \ - libxinerama1 \ - libx11-xcb1 \ - libxext6 \ - libsm6 \ - libfontconfig1 \ - fonts-dejavu-core \ - libnss3 \ - libdbus-1-3 \ - libcairo2 \ - libglib2.0-0t64 \ - libcups2t64 -msg_ok "Installed Dependencies" - -fetch_and_deploy_gh_release "surfsense" "MODSetter/SurfSense" "tarball" -fetch_and_deploy_gh_release "caddy" "caddyserver/caddy" "prebuild" "v$(grep -oP 'CADDY_IMAGE=caddy:\K[0-9.]+' /opt/surfsense/docker/surfsense/Dockerfile)" "/opt/caddy" "caddy_*_linux_$(arch_resolve).tar.gz" -NODE_VERSION="24" NODE_MODULE="$(jq -r '.packageManager' /opt/surfsense/surfsense_local/frontend/package.json)" setup_nodejs -PYTHON_VERSION="3.12" setup_uv - -msg_info "Building SurfSense Frontend" -cd /opt/surfsense/surfsense_local/frontend -$STD pnpm install --frozen-lockfile -VITE_API_BASE=/api VITE_SURFSENSE_RUNTIME=docker VITE_SURFSENSE_VERSION="$(cat ../VERSION)" $STD pnpm build -rm -rf node_modules -msg_ok "Built SurfSense Frontend" - -msg_info "Setting up SurfSense Backend" -cd /opt/surfsense/surfsense_local/backend -$STD uv sync --frozen --no-dev -SURFSENSE_LOCAL_DATA_DIR=/opt/surfsense_data $STD .venv/bin/python scripts/fetch_embedding_model.py models -SURFSENSE_LOCAL_DATA_DIR=/opt/surfsense_data $STD .venv/bin/python scripts/fetch_docling_models.py models -SURFSENSE_LOCAL_DATA_DIR=/opt/surfsense_data $STD .venv/bin/python scripts/fetch_silero_vad.py models -msg_ok "Set up SurfSense Backend" - -msg_info "Staging llama.cpp and opencode" -cd /opt/surfsense/surfsense_local -$STD node runtimes/fetch-llamacpp.mjs --variant cpu --out electron/llamacpp -$STD node runtimes/opencode/stage.mjs -msg_ok "Staged llama.cpp and opencode" - -msg_info "Configuring SurfSense" -mkdir -p /opt/surfsense_data -cat </opt/surfsense_data/.env -SURFSENSE_LOCAL_DATA_DIR=/opt/surfsense_data -SURFSENSE_LOCAL_CADDY=/opt/caddy/caddy -SURFSENSE_LOCAL_CADDYFILE=/opt/surfsense/docker/surfsense/caddy/Caddyfile -SURFSENSE_LOCAL_PUBLIC_PORT=80 -SURFSENSE_LOCAL_CORS_ORIGINS= -SURFSENSE_PASSWORD=${var_surfsense_password:-} -SURFSENSE_ALLOWED_HOSTS= -SURFSENSE_AUTH= -SURFSENSE_TLS= -SURFSENSE_DOMAIN= -SURFSENSE_HTTPS_PORT=443 -EOF -chmod 600 /opt/surfsense_data/.env -msg_ok "Configured SurfSense" - -msg_info "Creating Service" -cat </etc/systemd/system/surfsense.service -[Unit] -Description=SurfSense -After=network-online.target -Wants=network-online.target - -[Service] -Type=simple -WorkingDirectory=/opt/surfsense/surfsense_local -EnvironmentFile=/opt/surfsense_data/.env -ExecStart=/usr/bin/node /opt/surfsense/surfsense_local/headless/main.ts -KillMode=mixed -TimeoutStopSec=30 -Restart=on-failure -RestartSec=5 - -[Install] -WantedBy=multi-user.target -EOF -systemctl enable -q --now surfsense -msg_ok "Created Service" - -motd_ssh -customize -cleanup_lxc diff --git a/json/surfsense.json b/json/surfsense.json deleted file mode 100644 index d6968f96d1..0000000000 --- a/json/surfsense.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "name": "SurfSense", - "slug": "surfsense", - "categories": [ - 20 - ], - "date_created": "2026-11-10", - "type": "ct", - "platforms": ["pve"], - "updateable": true, - "privileged": false, - "interface_port": 80, - "documentation": "https://www.surfsense.com/docs", - "website": "https://www.surfsense.com/", - "repository": "https://github.com/MODSetter/SurfSense", - "architectures": [ - "amd64" - ], - "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/surfsense.webp", - "description": "SurfSense is a self-hosted, privacy-focused alternative to NotebookLM. Upload your documents, chat with them and get answers with citations, and let its agent research, summarize and turn them into reports, decks or podcasts, using local models or any OpenAI-compatible or cloud provider.", - "install_methods": [ - { - "type": "default", - "script": "ct/surfsense.sh", - "config_path": "/opt/surfsense_data/.env", - "resources": { - "cpu": 4, - "ram": 4096, - "hdd": 16, - "os": "Debian", - "version": "13" - } - } - ], - "default_credentials": { - "username": null, - "password": null - }, - "notes": [ - { - "text": "Open http:// right after the install and create the sign-in password: until one is set, whoever opens the page first chooses it.", - "type": "warning" - }, - { - "text": "The setup wizard asks for a chat model: an OpenAI-compatible server such as Ollama, a cloud API key, or a local GGUF model, which runs on the CPU.", - "type": "info" - } - ], - "app_vars": [ - { - "name": "var_surfsense_password", - "label": "Sign-in Password", - "type": "password", - "secret": true, - "help": "Optional. Set here, it can only be changed in /opt/surfsense_data/.env; left empty, the first visitor creates it" - } - ] -}