mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-11-30 20:19:48 +01:00
Compare commits
18
Commits
No files matched your search
@@ -592,15 +592,34 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
||||
|
||||
## 2026-11-30
|
||||
|
||||
### 🆕 New Scripts
|
||||
|
||||
- Warpgate [@MickLesk](https://github.com/MickLesk) ([#19218](https://github.com/community-scripts/ProxmoxVE/pull/19218))
|
||||
- Obico [@a55uka](https://github.com/a55uka) ([#19217](https://github.com/community-scripts/ProxmoxVE/pull/19217))
|
||||
- agentgateway [@andy-vdg](https://github.com/andy-vdg) ([#19216](https://github.com/community-scripts/ProxmoxVE/pull/19216))
|
||||
- Roundcube [@MickLesk](https://github.com/MickLesk) ([#19214](https://github.com/community-scripts/ProxmoxVE/pull/19214))
|
||||
- Langfuse [@steveonjava](https://github.com/steveonjava) ([#19144](https://github.com/community-scripts/ProxmoxVE/pull/19144))
|
||||
|
||||
### 🚀 Updated Scripts
|
||||
|
||||
- #### 🐞 Bug Fixes
|
||||
|
||||
- Kan: build and run the API service [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#19207](https://github.com/community-scripts/ProxmoxVE/pull/19207))
|
||||
- speedtest-tracker: install cron for the scheduler [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#19209](https://github.com/community-scripts/ProxmoxVE/pull/19209))
|
||||
- VMs: allocate the EFI disk through vm_alloc_efi_disk [@MickLesk](https://github.com/MickLesk) ([#19206](https://github.com/community-scripts/ProxmoxVE/pull/19206))
|
||||
- Authelia: drop the base_settings call before variables [@MickLesk](https://github.com/MickLesk) ([#19180](https://github.com/community-scripts/ProxmoxVE/pull/19180))
|
||||
- koillection: bump PHP from 8.5 to 8.6 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#19200](https://github.com/community-scripts/ProxmoxVE/pull/19200))
|
||||
- nocobase: bump Node.js from 22 to 24 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#19194](https://github.com/community-scripts/ProxmoxVE/pull/19194))
|
||||
- formbricks: bump Node.js from 24 to 26 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#19193](https://github.com/community-scripts/ProxmoxVE/pull/19193))
|
||||
|
||||
- #### 🔧 Refactor
|
||||
|
||||
- Frigate: install without the Intel media driver when Intel's repository is unreachable [@MickLesk](https://github.com/MickLesk) ([#19063](https://github.com/community-scripts/ProxmoxVE/pull/19063))
|
||||
|
||||
### 💾 Core
|
||||
|
||||
- vm_alloc_efi_disk: pass a failed qm set on | Let Proxmox allocate and initialize the VM EFI disk [@MickLesk](https://github.com/MickLesk) ([core#327](https://github.com/community-scripts/core/pull/327))
|
||||
|
||||
## 2026-11-29
|
||||
|
||||
### 🆕 New Scripts
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
#!/usr/bin/env bash
|
||||
_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: andy-vdg
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://agentgateway.dev/
|
||||
|
||||
APP="agentgateway"
|
||||
var_tags="${var_tags:-ai;proxy;mcp}"
|
||||
var_cpu="${var_cpu:-1}"
|
||||
var_ram="${var_ram:-512}"
|
||||
var_disk="${var_disk:-2}"
|
||||
var_os="${var_os:-debian}"
|
||||
var_version="${var_version:-13}"
|
||||
var_arm64="${var_arm64:-yes}"
|
||||
var_unprivileged="${var_unprivileged:-1}"
|
||||
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
check_container_storage
|
||||
check_container_resources
|
||||
|
||||
if [[ ! -f /etc/agentgateway/config.yaml ]]; then
|
||||
msg_error "No agentgateway Installation Found!"
|
||||
exit
|
||||
fi
|
||||
|
||||
if check_for_gh_release "agentgateway" "agentgateway/agentgateway"; then
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop agentgateway
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
create_backup /etc/agentgateway /opt/agentgateway_data
|
||||
|
||||
fetch_and_deploy_gh_release "agentgateway" "agentgateway/agentgateway" "singlefile" "latest" "/opt/agentgateway" "agentgateway-linux-$(arch_resolve "amd64" "arm64")"
|
||||
|
||||
restore_backup
|
||||
|
||||
msg_info "Starting Service"
|
||||
systemctl start agentgateway
|
||||
msg_ok "Started Service"
|
||||
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}:4000/ui${CL}"
|
||||
@@ -31,12 +31,41 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
|
||||
if [[ ! -f /etc/systemd/system/kan-api.service ]]; then
|
||||
msg_info "Creating API Service"
|
||||
cat <<EOF >/etc/systemd/system/kan-api.service
|
||||
[Unit]
|
||||
Description=Kan API
|
||||
After=network.target postgresql.service
|
||||
Requires=postgresql.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/opt/kan/apps/api/dist
|
||||
EnvironmentFile=/opt/kan/.env
|
||||
ExecStart=/usr/bin/node main.mjs
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
systemctl daemon-reload
|
||||
if [[ -f /opt/kan/apps/api/build.mjs ]]; then
|
||||
cd /opt/kan/apps/api
|
||||
$STD node build.mjs
|
||||
systemctl enable -q --now kan-api
|
||||
fi
|
||||
msg_ok "Created API Service"
|
||||
fi
|
||||
|
||||
if check_for_gh_tag "kan" "kanbn/kan"; then
|
||||
NODE_VERSION="24" NODE_MODULE="pnpm" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop kan
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop kan kan-api
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
create_backup /opt/kan/.env
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_tag "kan" "kanbn/kan" "latest"
|
||||
@@ -50,6 +79,8 @@ function update_script() {
|
||||
export CI=true
|
||||
find /opt/kan/packages /opt/kan/apps -name 'tsconfig.json' -exec sed -i 's|"@kan/tsconfig/|"../../tooling/typescript/|g' {} +
|
||||
$STD pnpm build --filter=@kan/web
|
||||
cd /opt/kan/apps/api
|
||||
$STD node build.mjs
|
||||
unset NEXT_PUBLIC_USE_STANDALONE_OUTPUT CI
|
||||
msg_ok "Built Application"
|
||||
|
||||
@@ -64,9 +95,10 @@ function update_script() {
|
||||
$STD pnpm exec drizzle-kit migrate
|
||||
msg_ok "Ran Database Migrations"
|
||||
|
||||
msg_info "Starting Service"
|
||||
msg_info "Starting Services"
|
||||
systemctl enable -q --now kan-api
|
||||
systemctl start kan
|
||||
msg_ok "Started Service"
|
||||
msg_ok "Started Services"
|
||||
msg_ok "Updated successfully!"
|
||||
fi
|
||||
exit
|
||||
|
||||
@@ -0,0 +1,95 @@
|
||||
#!/usr/bin/env bash
|
||||
_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: Stephen Chin (steveonjava)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://github.com/langfuse/langfuse
|
||||
|
||||
APP="Langfuse"
|
||||
var_tags="${var_tags:-ai;monitoring;analytics}"
|
||||
var_cpu="${var_cpu:-4}"
|
||||
var_ram="${var_ram:-16384}"
|
||||
var_disk="${var_disk:-100}"
|
||||
var_os="${var_os:-debian}"
|
||||
var_version="${var_version:-13}"
|
||||
#var_arm64="${var_arm64:-no}" # unset = ask the user; set yes/no only when verified
|
||||
var_unprivileged="${var_unprivileged:-1}"
|
||||
|
||||
export var_admin_email="${var_admin_email:-}"
|
||||
export var_admin_pass="${var_admin_pass:-}"
|
||||
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
check_container_storage
|
||||
check_container_resources
|
||||
|
||||
if [[ ! -d /opt/langfuse || ! -f /opt/langfuse_data/.env ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
|
||||
if check_for_gh_release "seaweedfs" "seaweedfs/seaweedfs"; then
|
||||
msg_info "Stopping SeaweedFS"
|
||||
systemctl stop langfuse-storage
|
||||
msg_ok "Stopped SeaweedFS"
|
||||
|
||||
fetch_and_deploy_gh_release "seaweedfs" "seaweedfs/seaweedfs" "prebuild" "latest" "/opt/seaweedfs" "linux_$(arch_resolve).tar.gz"
|
||||
|
||||
msg_info "Starting SeaweedFS"
|
||||
systemctl start langfuse-storage
|
||||
$STD curl --retry 30 --retry-delay 2 --retry-connrefused -fsS http://127.0.0.1:8333/healthz
|
||||
msg_ok "Started SeaweedFS"
|
||||
fi
|
||||
|
||||
if check_for_gh_release "migrate" "golang-migrate/migrate"; then
|
||||
fetch_and_deploy_gh_release "migrate" "golang-migrate/migrate" "binary"
|
||||
fi
|
||||
|
||||
if check_for_gh_release "langfuse" "langfuse/langfuse"; then
|
||||
msg_warn "Take a container snapshot before updating Langfuse; database migrations cannot be rolled back by this script."
|
||||
msg_info "Stopping Langfuse"
|
||||
systemctl stop langfuse-web langfuse-worker
|
||||
msg_ok "Stopped Langfuse"
|
||||
|
||||
create_backup "$HOME/.langfuse"
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "langfuse" "langfuse/langfuse" "tarball"
|
||||
restore_backup
|
||||
NODE_VERSION="24" NODE_MODULE="pnpm@$(jq -r '.engines.pnpm' /opt/langfuse/package.json)" setup_nodejs
|
||||
RUST_TOOLCHAIN="$(sed -n 's/^channel = "\(.*\)"/\1/p' /opt/langfuse/packages/native/rust-toolchain.toml)" RUST_PROFILE="minimal" setup_rust
|
||||
|
||||
msg_info "Building Langfuse"
|
||||
cd /opt/langfuse
|
||||
HUSKY=0 $STD pnpm install --frozen-lockfile
|
||||
DOCKER_BUILD=1 NEXT_TELEMETRY_DISABLED=1 CI=true pnpm_config_verify_deps_before_run=false $STD pnpm turbo run build --filter=web... --filter=worker... --concurrency=1
|
||||
cp -r web/.next/static web/.next/standalone/web/.next/
|
||||
cp -r web/public web/.next/standalone/web/
|
||||
msg_ok "Built Langfuse"
|
||||
|
||||
msg_info "Starting Langfuse"
|
||||
systemctl restart langfuse-migrate
|
||||
systemctl start langfuse-web langfuse-worker
|
||||
$STD curl --retry 60 --retry-delay 2 --retry-connrefused -fsS http://127.0.0.1:3000/api/public/ready
|
||||
$STD curl --retry 30 --retry-delay 2 --retry-connrefused -fsS http://127.0.0.1:3030/api/health
|
||||
cat <<EOF >"$HOME/.langfuse"
|
||||
$(jq -r '.version' /opt/langfuse/package.json)
|
||||
EOF
|
||||
msg_ok "Started Langfuse"
|
||||
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}"
|
||||
+92
@@ -0,0 +1,92 @@
|
||||
#!/usr/bin/env bash
|
||||
_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: a55uka (a55uka)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://github.com/TheSpaghettiDetective/obico-server
|
||||
|
||||
APP="Obico"
|
||||
var_tags="${var_tags:-3d-printing;monitoring;ai}"
|
||||
var_cpu="${var_cpu:-4}"
|
||||
var_ram="${var_ram:-4096}"
|
||||
var_disk="${var_disk:-15}"
|
||||
var_os="${var_os:-debian}"
|
||||
var_version="${var_version:-13}"
|
||||
var_arm64="${var_arm64:-yes}" # arm64 verified: CI install + health check passed
|
||||
var_unprivileged="${var_unprivileged:-1}"
|
||||
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
check_container_storage
|
||||
check_container_resources
|
||||
|
||||
if [[ ! -d /opt/obico ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
|
||||
if check_for_gh_branch "obico" "TheSpaghettiDetective/obico-server" "release"; then
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop obico-tasks obico-web obico-ml-api
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
create_backup /opt/obico/.env
|
||||
|
||||
fetch_and_deploy_gh_branch "obico" "TheSpaghettiDetective/obico-server" "release" "/opt/obico"
|
||||
sed -i "s/^VERSION=.*/VERSION=$(cat ~/.obico)/" /opt/obico/.env
|
||||
|
||||
MOONRAKER_SHA=$(grep -oP 'checkout \K[a-f0-9]{40}' /opt/obico/backend/Dockerfile.base)
|
||||
if [[ -n "$MOONRAKER_SHA" && "$(git -C /opt/moonraker rev-parse HEAD 2>/dev/null)" != "$MOONRAKER_SHA" ]]; then
|
||||
msg_info "Updating Moonraker Metadata Library"
|
||||
[[ -d /opt/moonraker/.git ]] || $STD git clone https://github.com/Arksine/moonraker.git /opt/moonraker
|
||||
$STD git -C /opt/moonraker fetch --depth 1 origin "$MOONRAKER_SHA"
|
||||
$STD git -C /opt/moonraker checkout "$MOONRAKER_SHA"
|
||||
msg_ok "Updated Moonraker Metadata Library"
|
||||
fi
|
||||
|
||||
IMPORTLIB_METADATA_PIN=$(grep -oP 'importlib_metadata==\K[0-9.]+' /opt/obico/backend/Dockerfile.base)
|
||||
msg_info "Updating Python Environments"
|
||||
cd /opt/obico/backend
|
||||
$STD uv pip install -p .venv/bin/python -r requirements.txt
|
||||
$STD uv pip install -p .venv/bin/python "importlib_metadata==${IMPORTLIB_METADATA_PIN}"
|
||||
cd /opt/obico/ml_api
|
||||
$STD uv pip install -p .venv/bin/python -r requirements.txt onnxruntime opencv-python-headless
|
||||
msg_ok "Updated Python Environments"
|
||||
|
||||
if [[ "$(tr -d '\r' </opt/obico/ml_api/model/model-weights.onnx.sha256)" != "$(sha256sum /model_cache/ml_api/onnx/model-weights.onnx | cut -d' ' -f1)" ]]; then
|
||||
msg_info "Downloading Failure Detection Model"
|
||||
bash /opt/obico/ml_api/scripts/fetch_verified.sh "$(tr -d '\r' </opt/obico/ml_api/model/model-weights.onnx.url)" /model_cache/ml_api/onnx/model-weights.onnx 50000000 "$(tr -d '\r' </opt/obico/ml_api/model/model-weights.onnx.sha256)"
|
||||
msg_ok "Downloaded Failure Detection Model"
|
||||
fi
|
||||
|
||||
msg_info "Running Database Migrations"
|
||||
set -a
|
||||
source /opt/obico/.env
|
||||
set +a
|
||||
cd /opt/obico/backend
|
||||
$STD .venv/bin/python manage.py migrate --noinput
|
||||
$STD .venv/bin/python manage.py collectstatic --noinput
|
||||
msg_ok "Ran Database Migrations"
|
||||
|
||||
msg_info "Starting Services"
|
||||
systemctl start obico-ml-api obico-web obico-tasks
|
||||
msg_ok "Started Services"
|
||||
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}:3334${CL}"
|
||||
@@ -0,0 +1,65 @@
|
||||
#!/usr/bin/env bash
|
||||
_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/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://github.com/roundcube/roundcubemail
|
||||
|
||||
APP="Roundcube"
|
||||
var_tags="${var_tags:-mail;webmail}"
|
||||
var_cpu="${var_cpu:-1}"
|
||||
var_ram="${var_ram:-512}"
|
||||
var_disk="${var_disk:-4}"
|
||||
var_os="${var_os:-debian}"
|
||||
var_version="${var_version:-13}"
|
||||
var_arm64="${var_arm64:-yes}"
|
||||
var_unprivileged="${var_unprivileged:-1}"
|
||||
|
||||
export var_imap_host="${var_imap_host:-}"
|
||||
export var_smtp_host="${var_smtp_host:-}"
|
||||
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
check_container_storage
|
||||
check_container_resources
|
||||
|
||||
if [[ ! -d /opt/roundcube ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
|
||||
if check_for_gh_release "roundcube" "roundcube/roundcubemail"; then
|
||||
msg_info "Stopping Roundcube"
|
||||
systemctl stop nginx
|
||||
msg_ok "Stopped Roundcube"
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "roundcube" "roundcube/roundcubemail" "prebuild" "latest" "/opt/roundcube_update" "roundcubemail-*-complete.tar.gz"
|
||||
|
||||
msg_info "Updating Roundcube"
|
||||
$STD php /opt/roundcube_update/bin/installto.sh -y /opt/roundcube
|
||||
rm -rf /opt/roundcube_update
|
||||
chown -R www-data:www-data /opt/roundcube /opt/roundcube_data
|
||||
msg_ok "Updated Roundcube"
|
||||
|
||||
msg_info "Starting Roundcube"
|
||||
systemctl start nginx
|
||||
msg_ok "Started Roundcube"
|
||||
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}"
|
||||
@@ -31,6 +31,8 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
|
||||
ensure_dependencies cron
|
||||
|
||||
if check_for_gh_release "speedtest-tracker" "alexjustesen/speedtest-tracker"; then
|
||||
PHP_VERSION="8.4" PHP_FPM="YES" setup_php
|
||||
setup_composer
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
#!/usr/bin/env bash
|
||||
_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/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://github.com/warp-tech/warpgate
|
||||
|
||||
APP="Warpgate"
|
||||
var_tags="${var_tags:-bastion;ssh;security}"
|
||||
var_cpu="${var_cpu:-1}"
|
||||
var_ram="${var_ram:-512}"
|
||||
var_disk="${var_disk:-4}"
|
||||
var_os="${var_os:-debian}"
|
||||
var_version="${var_version:-13}"
|
||||
var_arm64="${var_arm64:-yes}"
|
||||
var_unprivileged="${var_unprivileged:-1}"
|
||||
|
||||
export var_admin_pass="${var_admin_pass:-}"
|
||||
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
check_container_storage
|
||||
check_container_resources
|
||||
|
||||
if [[ ! -f /opt/warpgate/warpgate ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
|
||||
if check_for_gh_release "warpgate" "warp-tech/warpgate"; then
|
||||
msg_info "Stopping Warpgate"
|
||||
systemctl stop warpgate
|
||||
msg_ok "Stopped Warpgate"
|
||||
|
||||
fetch_and_deploy_gh_release "warpgate" "warp-tech/warpgate" "singlefile" "latest" "/opt/warpgate" "warpgate-v*-$(arch_resolve "x86_64" "arm64")-linux"
|
||||
|
||||
msg_info "Starting Warpgate"
|
||||
systemctl start warpgate
|
||||
msg_ok "Started Warpgate"
|
||||
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}https://${IP}:8888/@warpgate${CL}"
|
||||
echo -e "${INFO}${YW}Admin login: admin, password in /opt/warpgate_data/.env (inside the container)${CL}"
|
||||
@@ -0,0 +1,59 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: andy-vdg
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://agentgateway.dev/
|
||||
|
||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||
color
|
||||
verb_ip6
|
||||
catch_errors
|
||||
setting_up_container
|
||||
network_check
|
||||
update_os
|
||||
|
||||
fetch_and_deploy_gh_release "agentgateway" "agentgateway/agentgateway" "singlefile" "latest" "/opt/agentgateway" "agentgateway-linux-$(arch_resolve "amd64" "arm64")"
|
||||
|
||||
msg_info "Configuring agentgateway"
|
||||
mkdir -p /etc/agentgateway /opt/agentgateway_data
|
||||
cat <<EOF >/etc/agentgateway/config.yaml
|
||||
# yaml-language-server: \$schema=https://agentgateway.dev/schema/config
|
||||
# The config agentgateway bootstraps on first run: traffic and the UI on port 4000,
|
||||
# state in SQLite. The UI has no login until you add policies:
|
||||
# https://agentgateway.dev/docs/standalone/latest/documentation/setup/ui/secure-ui/
|
||||
config:
|
||||
database:
|
||||
url: sqlite:///opt/agentgateway_data/data.db
|
||||
gateways:
|
||||
default:
|
||||
port: 4000
|
||||
ui:
|
||||
gateways: default
|
||||
EOF
|
||||
chmod 600 /etc/agentgateway/config.yaml
|
||||
msg_ok "Configured agentgateway"
|
||||
|
||||
msg_info "Creating Service"
|
||||
cat <<EOF >/etc/systemd/system/agentgateway.service
|
||||
[Unit]
|
||||
Description=agentgateway
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
ExecStart=/opt/agentgateway/agentgateway -f /etc/agentgateway/config.yaml
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
systemctl enable -q --now agentgateway
|
||||
msg_ok "Created Service"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
cleanup_lxc
|
||||
@@ -124,15 +124,18 @@ msg_ok "Built SQLite Extensions"
|
||||
|
||||
if [[ "$(arch_resolve)" == "amd64" ]]; then
|
||||
msg_info "Building Intel Media Driver (Patience)"
|
||||
download_gpg_key "https://repositories.intel.com/gpu/intel-graphics.key" "/usr/share/keyrings/intel-graphics.gpg" "dearmor"
|
||||
sed -i '/intel-graphics.key/d' /opt/frigate/docker/main/build_intel_media_driver.sh
|
||||
$STD bash /opt/frigate/docker/main/build_intel_media_driver.sh
|
||||
cp -a /rootfs/. /
|
||||
rm -rf /rootfs
|
||||
rm -f /etc/apt/sources.list.d/intel-gpu-jammy.list /usr/share/keyrings/intel-graphics.gpg
|
||||
apt_update_safe
|
||||
ldconfig
|
||||
msg_ok "Built Intel Media Driver"
|
||||
if download_gpg_key "https://repositories.intel.com/gpu/intel-graphics.key" "/usr/share/keyrings/intel-graphics.gpg" "dearmor"; then
|
||||
sed -i '/intel-graphics.key/d' /opt/frigate/docker/main/build_intel_media_driver.sh
|
||||
$STD bash /opt/frigate/docker/main/build_intel_media_driver.sh
|
||||
cp -a /rootfs/. /
|
||||
rm -rf /rootfs
|
||||
rm -f /etc/apt/sources.list.d/intel-gpu-jammy.list /usr/share/keyrings/intel-graphics.gpg
|
||||
apt_update_safe
|
||||
ldconfig
|
||||
msg_ok "Built Intel Media Driver"
|
||||
else
|
||||
msg_warn "Intel's package repository cannot be reached from this network; Frigate is installed without the Intel media driver"
|
||||
fi
|
||||
fi
|
||||
|
||||
fetch_and_deploy_gh_release "go2rtc" "AlexxIT/go2rtc" "singlefile" "v1.9.14" "/usr/local/go2rtc/bin" "go2rtc_linux_$(arch_resolve)"
|
||||
|
||||
+28
-5
@@ -34,9 +34,11 @@ BETTER_AUTH_TRUSTED_ORIGINS=http://${LOCAL_IP}:3000
|
||||
POSTGRES_URL=postgres://${PG_DB_USER}:${PG_DB_PASS}@localhost:5432/${PG_DB_NAME}
|
||||
NEXT_PUBLIC_ALLOW_CREDENTIALS=true
|
||||
TRELLO_APP_API_KEY=
|
||||
TRELLO_APP_API_SECRET=
|
||||
TRELLO_APP_SECRET=
|
||||
HOSTNAME=0.0.0.0
|
||||
PORT=3000
|
||||
API_PORT=4000
|
||||
KAN_API_URL=http://127.0.0.1:4000
|
||||
NODE_ENV=production
|
||||
EOF
|
||||
msg_ok "Configured Application"
|
||||
@@ -49,6 +51,8 @@ $STD pnpm install --ignore-scripts --prod=false
|
||||
export CI=true
|
||||
find /opt/kan/packages /opt/kan/apps -name 'tsconfig.json' -exec sed -i 's|"@kan/tsconfig/|"../../tooling/typescript/|g' {} +
|
||||
$STD pnpm build --filter=@kan/web
|
||||
cd /opt/kan/apps/api
|
||||
$STD node build.mjs
|
||||
unset NEXT_PUBLIC_USE_STANDALONE_OUTPUT CI
|
||||
msg_ok "Built Application"
|
||||
|
||||
@@ -63,12 +67,31 @@ cd /opt/kan/packages/db
|
||||
POSTGRES_URL="postgres://${PG_DB_USER}:${PG_DB_PASS}@localhost:5432/${PG_DB_NAME}" $STD pnpm exec drizzle-kit migrate
|
||||
msg_ok "Ran Database Migrations"
|
||||
|
||||
msg_info "Creating Service"
|
||||
msg_info "Creating Services"
|
||||
cat <<EOF >/etc/systemd/system/kan-api.service
|
||||
[Unit]
|
||||
Description=Kan API
|
||||
After=network.target postgresql.service
|
||||
Requires=postgresql.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/opt/kan/apps/api/dist
|
||||
EnvironmentFile=/opt/kan/.env
|
||||
ExecStart=/usr/bin/node main.mjs
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
cat <<EOF >/etc/systemd/system/kan.service
|
||||
[Unit]
|
||||
Description=Kan Board
|
||||
After=network.target postgresql.service
|
||||
After=network.target postgresql.service kan-api.service
|
||||
Requires=postgresql.service
|
||||
Wants=kan-api.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
@@ -82,8 +105,8 @@ RestartSec=5
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
systemctl enable -q --now kan
|
||||
msg_ok "Created Service"
|
||||
systemctl enable -q --now kan-api kan
|
||||
msg_ok "Created Services"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
|
||||
@@ -0,0 +1,254 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: Stephen Chin (steveonjava)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://github.com/langfuse/langfuse
|
||||
|
||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||
color
|
||||
verb_ip6
|
||||
catch_errors
|
||||
setting_up_container
|
||||
network_check
|
||||
update_os
|
||||
|
||||
if [[ -z "${var_admin_email:-}" ]]; then
|
||||
var_admin_email=$(prompt_input "Langfuse admin email:" "admin@example.com" 60)
|
||||
fi
|
||||
var_admin_email="${var_admin_email:-admin@example.com}"
|
||||
if [[ ! "$var_admin_email" =~ ^[A-Za-z0-9_+-]+(\.[A-Za-z0-9_+-]+)*@([A-Za-z0-9][A-Za-z0-9-]*\.)+[A-Za-z]{2,}$ ]]; then
|
||||
msg_warn "Invalid email '${var_admin_email}', falling back to admin@example.com"
|
||||
var_admin_email="admin@example.com"
|
||||
fi
|
||||
var_admin_pass="${var_admin_pass:-}"
|
||||
if [[ -n "$var_admin_pass" ]] && [[ ${#var_admin_pass} -lt 8 || "$var_admin_pass" == *[[:space:][:cntrl:]\"\'\\]* ]]; then
|
||||
msg_warn "Admin password needs at least 8 characters and no spaces, quotes or backslashes, generating one"
|
||||
var_admin_pass=""
|
||||
fi
|
||||
if [[ -z "$var_admin_pass" ]]; then
|
||||
var_admin_pass=$(random_password 24)
|
||||
fi
|
||||
|
||||
msg_info "Installing Dependencies"
|
||||
$STD apt install -y build-essential redis-server
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
PG_VERSION="17" setup_postgresql
|
||||
PG_DB_NAME="langfuse" PG_DB_USER="langfuse" setup_postgresql_db
|
||||
setup_clickhouse
|
||||
fetch_and_deploy_gh_release "langfuse" "langfuse/langfuse" "tarball"
|
||||
NODE_VERSION="24" NODE_MODULE="pnpm@$(jq -r '.engines.pnpm' /opt/langfuse/package.json)" setup_nodejs
|
||||
RUST_TOOLCHAIN="$(sed -n 's/^channel = "\(.*\)"/\1/p' /opt/langfuse/packages/native/rust-toolchain.toml)" RUST_PROFILE="minimal" setup_rust
|
||||
fetch_and_deploy_gh_release "migrate" "golang-migrate/migrate" "binary"
|
||||
fetch_and_deploy_gh_release "seaweedfs" "seaweedfs/seaweedfs" "prebuild" "latest" "/opt/seaweedfs" "linux_$(arch_resolve).tar.gz"
|
||||
|
||||
msg_info "Building Langfuse"
|
||||
cd /opt/langfuse
|
||||
HUSKY=0 $STD pnpm install --frozen-lockfile
|
||||
DOCKER_BUILD=1 NEXT_TELEMETRY_DISABLED=1 CI=true pnpm_config_verify_deps_before_run=false $STD pnpm turbo run build --filter=web... --filter=worker... --concurrency=1
|
||||
cp -r web/.next/static web/.next/standalone/web/.next/
|
||||
cp -r web/public web/.next/standalone/web/
|
||||
msg_ok "Built Langfuse"
|
||||
|
||||
msg_info "Configuring Langfuse"
|
||||
mkdir -p /opt/langfuse_data/storage
|
||||
chmod 700 /opt/langfuse_data
|
||||
REDIS_PASS=$(random_password 32)
|
||||
CLICKHOUSE_PASS=$(random_password 32)
|
||||
S3_SECRET=$(random_password 48)
|
||||
PUBLIC_KEY="pk-lf-$(random_password 32)"
|
||||
SECRET_KEY="sk-lf-$(random_password 32)"
|
||||
cat <<EOF >/opt/langfuse_data/.env
|
||||
NODE_ENV=production
|
||||
NEXTAUTH_URL=http://${LOCAL_IP}:3000
|
||||
NEXTAUTH_SECRET=$(random_password 48)
|
||||
SALT=$(random_password 48)
|
||||
ENCRYPTION_KEY=$(openssl rand -hex 32)
|
||||
DATABASE_URL=postgresql://langfuse:${PG_DB_PASS}@127.0.0.1:5432/langfuse
|
||||
DIRECT_URL=postgresql://langfuse:${PG_DB_PASS}@127.0.0.1:5432/langfuse
|
||||
CLICKHOUSE_URL=http://127.0.0.1:8123
|
||||
CLICKHOUSE_MIGRATION_URL=clickhouse://127.0.0.1:9000
|
||||
CLICKHOUSE_USER=langfuse
|
||||
CLICKHOUSE_PASSWORD=${CLICKHOUSE_PASS}
|
||||
CLICKHOUSE_DB=default
|
||||
CLICKHOUSE_CLUSTER_ENABLED=false
|
||||
REDIS_HOST=127.0.0.1
|
||||
REDIS_PORT=6379
|
||||
REDIS_AUTH=${REDIS_PASS}
|
||||
LANGFUSE_S3_EVENT_UPLOAD_BUCKET=langfuse
|
||||
LANGFUSE_S3_EVENT_UPLOAD_PREFIX=events/
|
||||
LANGFUSE_S3_EVENT_UPLOAD_REGION=us-east-1
|
||||
LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT=http://127.0.0.1:8333
|
||||
LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID=langfuse
|
||||
LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY=${S3_SECRET}
|
||||
LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE=true
|
||||
AUTH_DISABLE_SIGNUP=true
|
||||
TELEMETRY_ENABLED=false
|
||||
NEXT_TELEMETRY_DISABLED=1
|
||||
LANGFUSE_INIT_ORG_ID=default-org
|
||||
LANGFUSE_INIT_ORG_NAME=Default
|
||||
LANGFUSE_INIT_PROJECT_ID=default-project
|
||||
LANGFUSE_INIT_PROJECT_NAME=Default
|
||||
LANGFUSE_INIT_PROJECT_PUBLIC_KEY=${PUBLIC_KEY}
|
||||
LANGFUSE_INIT_PROJECT_SECRET_KEY=${SECRET_KEY}
|
||||
LANGFUSE_INIT_USER_EMAIL=${var_admin_email}
|
||||
LANGFUSE_INIT_USER_NAME=Admin
|
||||
LANGFUSE_INIT_USER_PASSWORD=${var_admin_pass}
|
||||
EOF
|
||||
chmod 600 /opt/langfuse_data/.env
|
||||
cat <<EOF >/etc/redis/langfuse.conf
|
||||
bind 127.0.0.1 ::1
|
||||
protected-mode yes
|
||||
requirepass ${REDIS_PASS}
|
||||
maxmemory-policy noeviction
|
||||
appendonly yes
|
||||
EOF
|
||||
chown root:redis /etc/redis/langfuse.conf
|
||||
chmod 640 /etc/redis/langfuse.conf
|
||||
cat <<EOF >>/etc/redis/redis.conf
|
||||
include /etc/redis/langfuse.conf
|
||||
EOF
|
||||
cat <<EOF >/etc/clickhouse-server/users.d/langfuse.xml
|
||||
<clickhouse>
|
||||
<users>
|
||||
<default remove="remove"/>
|
||||
<langfuse>
|
||||
<password_sha256_hex>$(printf '%s' "${CLICKHOUSE_PASS}" | sha256sum | cut -d ' ' -f1)</password_sha256_hex>
|
||||
<networks><ip>127.0.0.1</ip><ip>::1</ip></networks>
|
||||
<profile>default</profile>
|
||||
<quota>default</quota>
|
||||
<access_management>1</access_management>
|
||||
</langfuse>
|
||||
</users>
|
||||
</clickhouse>
|
||||
EOF
|
||||
chown clickhouse:clickhouse /etc/clickhouse-server/users.d/langfuse.xml
|
||||
chmod 600 /etc/clickhouse-server/users.d/langfuse.xml
|
||||
cat <<EOF >/etc/clickhouse-server/config.d/langfuse.xml
|
||||
<clickhouse>
|
||||
<listen_host replace="replace">127.0.0.1</listen_host>
|
||||
<timezone>UTC</timezone>
|
||||
</clickhouse>
|
||||
EOF
|
||||
cat <<EOF >/opt/langfuse_data/s3.json
|
||||
{
|
||||
"identities": [
|
||||
{
|
||||
"name": "langfuse",
|
||||
"credentials": [{"accessKey": "langfuse", "secretKey": "${S3_SECRET}"}],
|
||||
"actions": ["Admin", "Read", "Write", "List", "Tagging"]
|
||||
}
|
||||
]
|
||||
}
|
||||
EOF
|
||||
chmod 600 /opt/langfuse_data/s3.json
|
||||
msg_ok "Configured Langfuse"
|
||||
|
||||
msg_info "Creating Services"
|
||||
cat <<EOF >/etc/systemd/system/langfuse-storage.service
|
||||
[Unit]
|
||||
Description=Langfuse S3 Storage (SeaweedFS)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/opt/langfuse_data/storage
|
||||
ExecStart=/opt/seaweedfs/weed server -dir=/opt/langfuse_data/storage -ip=127.0.0.1 -ip.bind=127.0.0.1 -s3 -s3.port=8333 -s3.port.iceberg=0 -s3.port.lance=0 -s3.config=/opt/langfuse_data/s3.json -master.telemetry=false
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
UMask=0077
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
cat <<EOF >/etc/systemd/system/langfuse-migrate.service
|
||||
[Unit]
|
||||
Description=Langfuse Database Migrations
|
||||
After=network.target postgresql.service clickhouse-server.service redis-server.service langfuse-storage.service
|
||||
Wants=postgresql.service clickhouse-server.service redis-server.service langfuse-storage.service
|
||||
Before=langfuse-web.service langfuse-worker.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
WorkingDirectory=/opt/langfuse
|
||||
EnvironmentFile=/opt/langfuse_data/.env
|
||||
ExecStart=/usr/bin/pnpm --filter @langfuse/shared exec prisma db execute --schema=./prisma/schema.prisma --file=./scripts/cleanup.sql
|
||||
ExecStart=/usr/bin/pnpm --filter @langfuse/shared exec prisma migrate deploy --schema=./prisma/schema.prisma
|
||||
ExecStart=/bin/sh /opt/langfuse/packages/shared/clickhouse/scripts/up.sh
|
||||
RemainAfterExit=yes
|
||||
TimeoutStartSec=1800
|
||||
UMask=0077
|
||||
EOF
|
||||
cat <<EOF >/etc/systemd/system/langfuse-web.service
|
||||
[Unit]
|
||||
Description=Langfuse Web
|
||||
After=network.target langfuse-migrate.service
|
||||
Requires=langfuse-migrate.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/opt/langfuse
|
||||
EnvironmentFile=/opt/langfuse_data/.env
|
||||
Environment=HOSTNAME=0.0.0.0
|
||||
Environment=PORT=3000
|
||||
ExecStart=/usr/bin/node /opt/langfuse/web/.next/standalone/web/server.js
|
||||
SuccessExitStatus=143
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
UMask=0077
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
cat <<EOF >/etc/systemd/system/langfuse-worker.service
|
||||
[Unit]
|
||||
Description=Langfuse Worker
|
||||
After=network.target langfuse-migrate.service
|
||||
Requires=langfuse-migrate.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/opt/langfuse
|
||||
EnvironmentFile=/opt/langfuse_data/.env
|
||||
Environment=HOSTNAME=127.0.0.1
|
||||
Environment=PORT=3030
|
||||
ExecStart=/usr/bin/node /opt/langfuse/worker/dist/index.js
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
UMask=0077
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
systemctl restart redis-server clickhouse-server
|
||||
systemctl enable -q --now langfuse-storage
|
||||
$STD curl --retry 30 --retry-delay 2 --retry-connrefused -fsS http://127.0.0.1:9333/cluster/status
|
||||
$STD /opt/seaweedfs/weed shell -master=127.0.0.1:9333 <<<"s3.bucket.create -name langfuse"
|
||||
$STD curl --config - --retry 30 --retry-delay 2 --retry-connrefused -fsS http://127.0.0.1:8333/langfuse <<EOF
|
||||
aws-sigv4 = "aws:amz:us-east-1:s3"
|
||||
user = "langfuse:${S3_SECRET}"
|
||||
EOF
|
||||
systemctl enable -q --now langfuse-web langfuse-worker
|
||||
$STD curl --retry 60 --retry-delay 2 --retry-connrefused -fsS http://127.0.0.1:3000/api/public/ready
|
||||
$STD curl --retry 30 --retry-delay 2 --retry-connrefused -fsS http://127.0.0.1:3030/api/health
|
||||
msg_ok "Created Services"
|
||||
|
||||
msg_info "Saving Credentials"
|
||||
sed -i '/^LANGFUSE_INIT_/d' /opt/langfuse_data/.env
|
||||
cat <<EOF >>~/langfuse.creds
|
||||
|
||||
Langfuse Admin
|
||||
Email: ${var_admin_email}
|
||||
Password: ${var_admin_pass}
|
||||
|
||||
Langfuse API Keys (project Default)
|
||||
Public Key: ${PUBLIC_KEY}
|
||||
Secret Key: ${SECRET_KEY}
|
||||
EOF
|
||||
chmod 600 ~/langfuse.creds
|
||||
msg_ok "Saved Credentials"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
cleanup_lxc
|
||||
@@ -0,0 +1,150 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: a55uka (a55uka)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://github.com/TheSpaghettiDetective/obico-server
|
||||
|
||||
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 \
|
||||
libmagic1 \
|
||||
redis-server
|
||||
systemctl enable -q --now redis-server
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
setup_ffmpeg
|
||||
|
||||
fetch_and_deploy_gh_branch "obico" "TheSpaghettiDetective/obico-server" "release" "/opt/obico"
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
|
||||
msg_info "Setting up Python Environments"
|
||||
IMPORTLIB_METADATA_PIN=$(grep -oP 'importlib_metadata==\K[0-9.]+' /opt/obico/backend/Dockerfile.base) # tracked from upstream's Dockerfile.base
|
||||
cd /opt/obico/backend
|
||||
$STD uv venv --python 3.12 .venv
|
||||
$STD uv pip install -p .venv/bin/python -r requirements.txt
|
||||
$STD uv pip install -p .venv/bin/python "importlib_metadata==${IMPORTLIB_METADATA_PIN}"
|
||||
cd /opt/obico/ml_api
|
||||
$STD uv venv --python 3.12 .venv
|
||||
$STD uv pip install -p .venv/bin/python -r requirements.txt onnxruntime opencv-python-headless
|
||||
msg_ok "Set up Python Environments"
|
||||
|
||||
msg_info "Installing Moonraker Metadata Library"
|
||||
MOONRAKER_SHA=$(grep -oP 'checkout \K[a-f0-9]{40}' /opt/obico/backend/Dockerfile.base) # pinned clone as in backend/Dockerfile.base, imported via PYTHONPATH
|
||||
$STD git clone https://github.com/Arksine/moonraker.git /opt/moonraker
|
||||
$STD git -C /opt/moonraker checkout "$MOONRAKER_SHA"
|
||||
msg_ok "Installed Moonraker Metadata Library"
|
||||
|
||||
msg_info "Downloading Failure Detection Model"
|
||||
mkdir -p /model_cache/ml_api/onnx
|
||||
bash /opt/obico/ml_api/scripts/fetch_verified.sh "$(tr -d '\r' </opt/obico/ml_api/model/model-weights.onnx.url)" /model_cache/ml_api/onnx/model-weights.onnx 50000000 "$(tr -d '\r' </opt/obico/ml_api/model/model-weights.onnx.sha256)" # upstream's checksum-verifying downloader, URL and sha256 from sidecar files
|
||||
msg_ok "Downloaded Failure Detection Model"
|
||||
|
||||
msg_info "Configuring Obico"
|
||||
DJANGO_SECRET_KEY=$(cd /opt/obico/backend && .venv/bin/python -c 'import secrets; print(secrets.token_urlsafe())' 2>/dev/null)
|
||||
ML_API_TOKEN=$(random_password 32)
|
||||
cat <<EOF >/opt/obico/.env
|
||||
DJANGO_SECRET_KEY=${DJANGO_SECRET_KEY}
|
||||
REDIS_URL=redis://127.0.0.1:6379
|
||||
DATABASE_URL=sqlite:////opt/obico/backend/db.sqlite3
|
||||
INTERNAL_MEDIA_HOST=http://127.0.0.1:3334
|
||||
ML_API_HOST=http://127.0.0.1:3333
|
||||
ML_API_TOKEN=${ML_API_TOKEN}
|
||||
OCTOPRINT_TUNNEL_PORT_RANGE=0-0
|
||||
VERSION=$(cat ~/.obico)
|
||||
PYTHONPATH=/opt/moonraker
|
||||
EOF
|
||||
chmod 600 /opt/obico/.env
|
||||
msg_ok "Configured Obico"
|
||||
|
||||
msg_info "Initializing Database"
|
||||
set -a
|
||||
source /opt/obico/.env
|
||||
set +a
|
||||
cd /opt/obico/backend
|
||||
$STD .venv/bin/python manage.py migrate --noinput
|
||||
$STD .venv/bin/python manage.py collectstatic --noinput
|
||||
$STD .venv/bin/python manage.py site --add "${LOCAL_IP}:3334"
|
||||
msg_ok "Initialized Database"
|
||||
|
||||
msg_info "Creating Services"
|
||||
cat <<EOF >/etc/systemd/system/obico-ml-api.service
|
||||
[Unit]
|
||||
Description=Obico ML API
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/opt/obico/ml_api
|
||||
EnvironmentFile=/opt/obico/.env
|
||||
ExecStart=/opt/obico/ml_api/.venv/bin/gunicorn --bind 0.0.0.0:3333 --workers 1 --timeout 120 wsgi # 0.0.0.0 for external clients (e.g. Bambuddy); ML_API_TOKEN gates everything but the health check
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
|
||||
cat <<EOF >/etc/systemd/system/obico-web.service
|
||||
[Unit]
|
||||
Description=Obico Web Server
|
||||
Wants=network-online.target obico-ml-api.service
|
||||
After=network-online.target redis-server.service obico-ml-api.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/opt/obico/backend
|
||||
EnvironmentFile=/opt/obico/.env
|
||||
ExecStart=/opt/obico/backend/.venv/bin/daphne -b 0.0.0.0 -p 3334 config.routing:application
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
|
||||
cat <<EOF >/etc/systemd/system/obico-tasks.service
|
||||
[Unit]
|
||||
Description=Obico Celery Worker
|
||||
Wants=network-online.target
|
||||
After=network-online.target redis-server.service obico-web.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/opt/obico/backend
|
||||
EnvironmentFile=/opt/obico/.env
|
||||
ExecStart=/opt/obico/backend/.venv/bin/celery -A config worker --beat -l info -c 2 -Q realtime,celery
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
systemctl enable -q --now obico-ml-api obico-web obico-tasks
|
||||
msg_ok "Created Services"
|
||||
|
||||
msg_info "Waiting for Obico to start"
|
||||
for ((i = 1; i <= 45; i++)); do
|
||||
curl -fsS http://127.0.0.1:3334/hc/ >/dev/null 2>&1 && break
|
||||
sleep 2
|
||||
done
|
||||
if ! curl -fsS http://127.0.0.1:3334/hc/ >/dev/null 2>&1; then
|
||||
msg_error "Obico did not respond within 90s. Check 'journalctl -u obico-web -u obico-ml-api -u obico-tasks'"
|
||||
exit 150
|
||||
fi
|
||||
msg_ok "Obico is running"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
cleanup_lxc
|
||||
@@ -0,0 +1,83 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: MickLesk (CanbiZ)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://github.com/roundcube/roundcubemail
|
||||
|
||||
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 nginx rsync
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="ldap" setup_php
|
||||
fetch_and_deploy_gh_release "roundcube" "roundcube/roundcubemail" "prebuild" "latest" "/opt/roundcube" "roundcubemail-*-complete.tar.gz"
|
||||
|
||||
msg_info "Configuring Roundcube"
|
||||
mkdir -p /opt/roundcube_data
|
||||
cat <<EOF >/opt/roundcube/config/config.inc.php
|
||||
<?php
|
||||
\$config = [];
|
||||
\$config['db_dsnw'] = 'sqlite:////opt/roundcube_data/roundcube.db?mode=0640';
|
||||
\$config['imap_host'] = '${var_imap_host:-}';
|
||||
\$config['smtp_host'] = '${var_smtp_host:-%h:587}';
|
||||
\$config['smtp_user'] = '%u';
|
||||
\$config['smtp_pass'] = '%p';
|
||||
\$config['product_name'] = 'Roundcube Webmail';
|
||||
\$config['des_key'] = '$(random_password 24)';
|
||||
\$config['plugins'] = ['archive', 'zipdownload'];
|
||||
\$config['skin'] = 'elastic';
|
||||
EOF
|
||||
rm -rf /opt/roundcube/installer
|
||||
chown -R www-data:www-data /opt/roundcube /opt/roundcube_data
|
||||
chmod 640 /opt/roundcube/config/config.inc.php
|
||||
cd /opt/roundcube
|
||||
$STD runuser -u www-data -- php bin/initdb.sh --dir=SQL --update
|
||||
msg_ok "Configured Roundcube"
|
||||
|
||||
msg_info "Configuring Nginx"
|
||||
PHP_SOCK=$(get_php_fpm_socket)
|
||||
cat <<EOF >/etc/nginx/sites-available/roundcube
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name _;
|
||||
|
||||
root /opt/roundcube/public_html;
|
||||
index index.php;
|
||||
|
||||
client_max_body_size 128M;
|
||||
|
||||
location = /favicon.ico {
|
||||
rewrite ^ /static.php/skins/elastic/images/favicon.ico last;
|
||||
}
|
||||
location / {
|
||||
try_files \$uri \$uri/ /index.php\$is_args\$args;
|
||||
}
|
||||
location ~ \.php(/|\$) {
|
||||
fastcgi_split_path_info ^(.+?\.php)(/.*)\$;
|
||||
set \$path_info \$fastcgi_path_info;
|
||||
try_files \$fastcgi_script_name =404;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO \$path_info;
|
||||
fastcgi_pass unix:${PHP_SOCK};
|
||||
}
|
||||
location ~ /\. {
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
EOF
|
||||
nginx_enable_site "roundcube"
|
||||
msg_ok "Configured Nginx"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
cleanup_lxc
|
||||
@@ -15,6 +15,7 @@ update_os
|
||||
|
||||
msg_info "Installing Dependencies"
|
||||
$STD apt install -y \
|
||||
cron \
|
||||
nginx \
|
||||
sqlite3
|
||||
setcap cap_net_raw+ep /bin/ping
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: MickLesk (CanbiZ)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://github.com/warp-tech/warpgate
|
||||
|
||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||
color
|
||||
verb_ip6
|
||||
catch_errors
|
||||
setting_up_container
|
||||
network_check
|
||||
update_os
|
||||
|
||||
fetch_and_deploy_gh_release "warpgate" "warp-tech/warpgate" "singlefile" "latest" "/opt/warpgate" "warpgate-v*-$(arch_resolve "x86_64" "arm64")-linux"
|
||||
|
||||
msg_info "Configuring Warpgate"
|
||||
ADMIN_PASS="${var_admin_pass:-$(random_password)}"
|
||||
mkdir -p /opt/warpgate_data
|
||||
cat <<EOF >/opt/warpgate_data/.env
|
||||
WARPGATE_ADMIN_USER=admin
|
||||
WARPGATE_ADMIN_PASSWORD=${ADMIN_PASS}
|
||||
EOF
|
||||
chmod 600 /opt/warpgate_data/.env
|
||||
WARPGATE_ADMIN_PASSWORD="$ADMIN_PASS" $STD /opt/warpgate/warpgate --config /opt/warpgate_data/warpgate.yaml unattended-setup \
|
||||
--data-path /opt/warpgate_data \
|
||||
--http-port 8888 \
|
||||
--ssh-port 2222 \
|
||||
--mysql-port 33306 \
|
||||
--postgres-port 55432 \
|
||||
--kubernetes-port 8443 \
|
||||
--record-sessions
|
||||
# A host kernel booted without IPv6 cannot bind [::]
|
||||
[[ -d /proc/sys/net/ipv6 ]] || sed -i "s/'\[::\]:/'0.0.0.0:/" /opt/warpgate_data/warpgate.yaml
|
||||
msg_ok "Configured Warpgate"
|
||||
|
||||
msg_info "Creating Service"
|
||||
cat <<EOF >/etc/systemd/system/warpgate.service
|
||||
[Unit]
|
||||
Description=Warpgate
|
||||
After=network.target
|
||||
StartLimitIntervalSec=0
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
ExecStart=/opt/warpgate/warpgate --config /opt/warpgate_data/warpgate.yaml run
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
systemctl enable -q --now warpgate
|
||||
msg_ok "Created Service"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
cleanup_lxc
|
||||
Reference in new issue
Block a user