mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-11-28 16:34:21 +01:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fe5a81fdb0 | ||
|
|
4a3b7cbc02 | ||
|
|
b43d52b91b | ||
|
|
796a8b292c |
No files matched your search
+1
-31
@@ -587,24 +587,6 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
||||
|
||||
</details>
|
||||
|
||||
## 2026-11-28
|
||||
|
||||
### 🚀 Updated Scripts
|
||||
|
||||
- #### 🐞 Bug Fixes
|
||||
|
||||
- Garage: use published stable releases for install and update [@mormied22](https://github.com/mormied22) ([#19084](https://github.com/community-scripts/ProxmoxVE/pull/19084))
|
||||
|
||||
### 💾 Core
|
||||
|
||||
- PHP: Keep Sury from pulling a second PHP in, and read the version from packages [@MickLesk](https://github.com/MickLesk) ([core#316](https://github.com/community-scripts/core/pull/316))
|
||||
- Give PVE containers from linuxcontainers.org images the Proxmox templates Base set [@MickLesk](https://github.com/MickLesk) ([core#315](https://github.com/community-scripts/core/pull/315))
|
||||
- PHP: keep modules, pools and settings when setup_php changes the PHP version [@MickLesk](https://github.com/MickLesk) ([core#314](https://github.com/community-scripts/core/pull/314))
|
||||
|
||||
### 📚 Documentation
|
||||
|
||||
- docs: add 9.3 support [@cwmoriarty](https://github.com/cwmoriarty) ([#19129](https://github.com/community-scripts/ProxmoxVE/pull/19129))
|
||||
|
||||
## 2026-11-27
|
||||
|
||||
### 🆕 New Scripts
|
||||
@@ -613,25 +595,13 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
||||
|
||||
### 🚀 Updated Scripts
|
||||
|
||||
- #### 🐞 Bug Fixes
|
||||
|
||||
- yourls: bump PHP from 8.3 to 8.4 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#19104](https://github.com/community-scripts/ProxmoxVE/pull/19104))
|
||||
- tandoor: bump Python from 3.13 to 3.14 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#19110](https://github.com/community-scripts/ProxmoxVE/pull/19110))
|
||||
- poznote: bump PHP from 8.4 to 8.5 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#19102](https://github.com/community-scripts/ProxmoxVE/pull/19102))
|
||||
- suggestarr: bump Python from 3.12 to 3.13 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#19109](https://github.com/community-scripts/ProxmoxVE/pull/19109))
|
||||
- romm: bump Python from 3.13 to 3.14 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#19108](https://github.com/community-scripts/ProxmoxVE/pull/19108))
|
||||
- norish: bump Python from 3.14 to 3.15 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#19107](https://github.com/community-scripts/ProxmoxVE/pull/19107))
|
||||
- mealie: bump Python from 3.12 to 3.14 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#19106](https://github.com/community-scripts/ProxmoxVE/pull/19106))
|
||||
|
||||
- #### ✨ New Features
|
||||
|
||||
- Gramps Web: install AI chat dependencies [@owenvoke](https://github.com/owenvoke) ([#19092](https://github.com/community-scripts/ProxmoxVE/pull/19092))
|
||||
|
||||
### 💾 Core
|
||||
|
||||
- Incus: offer the LAN network IncusOS gives instances, and rank NAT last [@MickLesk](https://github.com/MickLesk) ([core#313](https://github.com/community-scripts/core/pull/313))
|
||||
- core: wait for the package lists lock instead of taking it for a bad mirror [@MickLesk](https://github.com/MickLesk) ([core#304](https://github.com/community-scripts/core/pull/304))
|
||||
- incus: check an imported VM image on the target remote [@MickLesk](https://github.com/MickLesk) ([core#309](https://github.com/community-scripts/core/pull/309))
|
||||
- incus: check an imported VM image on the target remote [@MickLesk](https://github.com/MickLesk) ([core#309](https://github.com/community-scripts/core/pull/309))
|
||||
- Offer no DNS retry to a container without a connection out [@MickLesk](https://github.com/MickLesk) ([core#310](https://github.com/community-scripts/core/pull/310))
|
||||
- Refuse a static address without a gateway before pct create [@MickLesk](https://github.com/MickLesk) ([core#312](https://github.com/community-scripts/core/pull/312))
|
||||
- Protect a container once its install succeeded, not at creation [@MickLesk](https://github.com/MickLesk) ([core#311](https://github.com/community-scripts/core/pull/311))
|
||||
|
||||
@@ -76,7 +76,7 @@ guest's own package manager.
|
||||
|
||||
| Component | Details |
|
||||
| --------- | ------- |
|
||||
| **Proxmox VE** | 8.0 – 8.4, or 9.0 – 9.3 |
|
||||
| **Proxmox VE** | 8.0 – 8.4, or 9.0 – 9.2 |
|
||||
| **Access** | Root shell on the Proxmox host |
|
||||
| **Network** | Internet access during installation |
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ This project currently supports the following versions of Proxmox VE (PVE):
|
||||
|
||||
| Version | Supported |
|
||||
| ------- | ------------------ |
|
||||
| 9.3.x | :white_check_mark: |
|
||||
| 9.2.x | :white_check_mark: |
|
||||
| 9.1.x | :white_check_mark: |
|
||||
| 9.0.x | :white_check_mark: |
|
||||
|
||||
@@ -38,6 +38,7 @@ function update_script() {
|
||||
|
||||
create_backup /opt/anki-sync-server/.env /opt/anki-sync-server/data
|
||||
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
msg_info "Updating Anki Sync Server"
|
||||
$STD uv pip install --python /opt/anki-sync-server/venv/bin/python "anki==$(get_latest_github_release "ankitects/anki")"
|
||||
cat <<EOF >~/.anki-sync-server
|
||||
@@ -61,5 +62,7 @@ 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}:8080${CL}"
|
||||
echo -e "${INFO}${YW}Health check:${CL}"
|
||||
echo -e "${GATEWAY}${BGN}http://${IP}:8080/health${CL}"
|
||||
echo -e "${INFO}${YW}Sync server URL for the Anki clients:${CL}"
|
||||
echo -e "${GATEWAY}${BGN}http://${IP}:8080/${CL}"
|
||||
@@ -45,6 +45,7 @@ function update_script() {
|
||||
|
||||
create_backup /opt/airflow/.env
|
||||
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
msg_info "Updating Apache Airflow to ${LATEST}"
|
||||
$STD uv pip install --python /opt/airflow/.venv/bin/python \
|
||||
"apache-airflow[postgres,fab]==${LATEST}" \
|
||||
|
||||
@@ -56,6 +56,7 @@ function update_script() {
|
||||
;;
|
||||
esac
|
||||
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
msg_info "Updating Python Environment (${AUDIOMUSE_BACKEND})"
|
||||
cd /opt/audiomuse-ai
|
||||
$STD uv venv --clear --seed --python "$PY_VERSION" /opt/audiomuse-ai/.venv
|
||||
|
||||
+2
-1
@@ -51,9 +51,10 @@ function update_script() {
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "bambuddy" "maziggy/bambuddy" "tarball" "latest" "/opt/bambuddy"
|
||||
|
||||
PYTHON_VERSION="3.13" setup_uv
|
||||
msg_info "Updating Python Dependencies"
|
||||
cd /opt/bambuddy
|
||||
$STD uv venv --clear
|
||||
$STD uv venv --python 3.13 --clear
|
||||
$STD uv pip install -r requirements.txt
|
||||
msg_ok "Updated Python Dependencies"
|
||||
|
||||
|
||||
@@ -69,6 +69,7 @@ function update_script() {
|
||||
exit 1
|
||||
fi
|
||||
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
if [[ "$(cat /opt/borg1-venv/.pinned_version 2>/dev/null)" != "$BORG1_VERSION" ]]; then
|
||||
msg_info "Installing Borg ${BORG1_VERSION} (Patience)"
|
||||
$STD uv venv --clear --python "$BORG_PYTHON" /opt/borg1-venv
|
||||
|
||||
+4
-3
@@ -40,14 +40,15 @@ function update_script() {
|
||||
|
||||
create_backup /opt/fireshare/fireshare.env
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "fireshare" "ShaneIsrael/fireshare" "tarball"
|
||||
UV_PROJECT_DIR="/opt/fireshare" setup_uv
|
||||
PYTHON_VERSION="3.14" UV_PROJECT_DIR="/opt/fireshare" setup_uv
|
||||
restore_backup
|
||||
rm -f /usr/local/bin/fireshare
|
||||
|
||||
if ! grep -q "__FIRESHARE_PORT__" /etc/nginx/nginx.conf; then
|
||||
cp /opt/fireshare/app/nginx/prod.conf /etc/nginx/nginx.conf
|
||||
sed -i 's|root /processed/|root /opt/fireshare-processed/|g' /etc/nginx/nginx.conf
|
||||
sed -i 's/^user[[:space:]]\+nginx;/user root;/' /etc/nginx/nginx.conf
|
||||
sed -i 's|alias /data/|alias /opt/fireshare-data/|g' /etc/nginx/nginx.conf
|
||||
sed -i 's/^user[[:space:]]\+[^;]*;/user root;/' /etc/nginx/nginx.conf
|
||||
sed -i 's|root[[:space:]]\+/app/build;|root /opt/fireshare/app/client/build;|' /etc/nginx/nginx.conf
|
||||
sed -i 's/__FIRESHARE_PORT__/80/g' /etc/nginx/nginx.conf
|
||||
cp /opt/fireshare/app/nginx/error.html /etc/nginx/
|
||||
@@ -56,7 +57,7 @@ function update_script() {
|
||||
msg_info "Configuring Fireshare"
|
||||
|
||||
cd /opt/fireshare
|
||||
$STD uv venv --clear
|
||||
$STD uv venv --python 3.14 --clear
|
||||
$STD .venv/bin/python -m ensurepip --upgrade
|
||||
$STD .venv/bin/python -m pip install --upgrade --break-system-packages pip
|
||||
$STD .venv/bin/python -m pip install --no-cache-dir --break-system-packages --ignore-installed app/server
|
||||
|
||||
+59
-44
@@ -33,58 +33,73 @@ color
|
||||
catch_errors
|
||||
|
||||
update_deb_based() {
|
||||
systemctl restart garage
|
||||
if [[ ! -f /usr/local/bin/garage ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
GITEA_RELEASE=$(curl -fsSL https://api.github.com/repos/deuxfleurs-org/garage/tags | jq -r '.[0].name')
|
||||
if [[ "${GITEA_RELEASE}" != "$(cat ~/.garage 2>/dev/null)" ]] || [[ ! -f ~/.garage ]]; then
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop garage
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
msg_info "Backing Up Data"
|
||||
cp /usr/local/bin/garage /usr/local/bin/garage.old 2>/dev/null || true
|
||||
cp /etc/garage.toml /etc/garage.toml.bak 2>/dev/null || true
|
||||
msg_ok "Backed Up Data"
|
||||
|
||||
msg_info "Updating Garage"
|
||||
curl -fsSL "https://garagehq.deuxfleurs.fr/_releases/${GITEA_RELEASE}/$(arch_resolve "x86_64" "aarch64")-unknown-linux-musl/garage" -o /usr/local/bin/garage
|
||||
chmod +x /usr/local/bin/garage
|
||||
echo "${GITEA_RELEASE}" >~/.garage
|
||||
msg_ok "Updated Garage"
|
||||
|
||||
msg_info "Starting Service"
|
||||
systemctl start garage
|
||||
msg_ok "Started Service"
|
||||
msg_ok "Updated successfully!"
|
||||
else
|
||||
msg_ok "No update required. Garage is already at ${GITEA_RELEASE}"
|
||||
fi
|
||||
}
|
||||
|
||||
update_alpine() {
|
||||
rc-service garage restart || rc-service garage start
|
||||
if [[ ! -f /usr/local/bin/garage ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
|
||||
GITEA_RELEASE=$(curl -fsSL https://api.github.com/repos/deuxfleurs-org/garage/tags | jq -r '.[0].name')
|
||||
if [[ "${GITEA_RELEASE}" != "$(cat ~/.garage 2>/dev/null)" ]] || [[ ! -f ~/.garage ]]; then
|
||||
msg_info "Stopping Service"
|
||||
rc-service garage stop || true
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
msg_info "Backing Up Data"
|
||||
cp /usr/local/bin/garage /usr/local/bin/garage.old 2>/dev/null || true
|
||||
cp /etc/garage.toml /etc/garage.toml.bak 2>/dev/null || true
|
||||
msg_ok "Backed Up Data"
|
||||
|
||||
msg_info "Updating Garage"
|
||||
curl -fsSL "https://garagehq.deuxfleurs.fr/_releases/${GITEA_RELEASE}/$(arch_resolve "x86_64" "aarch64")-unknown-linux-musl/garage" -o /usr/local/bin/garage
|
||||
chmod +x /usr/local/bin/garage
|
||||
echo "${GITEA_RELEASE}" >~/.garage
|
||||
msg_ok "Updated Garage"
|
||||
|
||||
msg_info "Starting Service"
|
||||
rc-service garage start || rc-service garage restart
|
||||
msg_ok "Started Service"
|
||||
msg_ok "Updated successfully!"
|
||||
else
|
||||
msg_ok "No update required. Garage is already at ${GITEA_RELEASE}"
|
||||
fi
|
||||
}
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
check_container_storage
|
||||
check_container_resources
|
||||
|
||||
if [[ ! -f /usr/local/bin/garage ]]; then
|
||||
msg_error "No Garage installation found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
local garage_release garage_binary
|
||||
garage_release=$(curl -fsSL https://git.deuxfleurs.fr/api/v1/repos/Deuxfleurs/garage/releases/latest |
|
||||
jq -er 'select(.draft == false and .prerelease == false) | .tag_name | strings | select(length > 0)') || {
|
||||
msg_error "Could not determine the latest stable Garage release"
|
||||
exit 1
|
||||
}
|
||||
if [[ -f ~/.garage && "$garage_release" == "$(<~/.garage)" ]]; then
|
||||
msg_ok "No update required. Garage is already at ${garage_release}"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
msg_info "Downloading Garage ${garage_release}"
|
||||
garage_binary=$(mktemp /usr/local/bin/garage.XXXXXX)
|
||||
if ! download_file "https://garagehq.deuxfleurs.fr/_releases/${garage_release}/$(arch_resolve "x86_64" "aarch64")-unknown-linux-musl/garage" "$garage_binary"; then
|
||||
rm -f "$garage_binary"
|
||||
exit 1
|
||||
fi
|
||||
msg_ok "Downloaded Garage ${garage_release}"
|
||||
|
||||
msg_info "Backing up Garage"
|
||||
cp /usr/local/bin/garage /usr/local/bin/garage.old 2>/dev/null || true
|
||||
cp /etc/garage.toml /etc/garage.toml.bak 2>/dev/null || true
|
||||
msg_ok "Backed up Garage"
|
||||
|
||||
msg_info "Updating Garage"
|
||||
chmod 755 "$garage_binary"
|
||||
mv -f "$garage_binary" /usr/local/bin/garage
|
||||
msg_ok "Updated Garage"
|
||||
|
||||
msg_info "Restarting Garage"
|
||||
run_os_update
|
||||
msg_ok "Restarted Garage"
|
||||
printf '%s\n' "$garage_release" >~/.garage
|
||||
msg_ok "Updated Garage successfully"
|
||||
exit 0
|
||||
}
|
||||
|
||||
start
|
||||
@@ -93,5 +108,5 @@ description
|
||||
|
||||
msg_ok "Completed successfully!\n"
|
||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||
echo -e "${INFO}${YW}Use this Garage S3 API endpoint${CL}"
|
||||
echo -e "${GATEWAY}${BGN}http://${IP}:3900${CL}"
|
||||
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
|
||||
echo -e "${GATEWAY}${BGN}http://${IP}${CL}"
|
||||
+3
-2
@@ -44,9 +44,10 @@ function update_script() {
|
||||
|
||||
restore_backup
|
||||
|
||||
PYTHON_VERSION="3.13" setup_uv
|
||||
msg_info "Updating Python Dependencies"
|
||||
cd /opt/homelable/backend
|
||||
$STD uv venv --clear /opt/homelable/backend/.venv
|
||||
$STD uv venv --python 3.13 --clear /opt/homelable/backend/.venv
|
||||
$STD uv pip install --python /opt/homelable/backend/.venv/bin/python -r requirements.txt
|
||||
msg_ok "Updated Python Dependencies"
|
||||
|
||||
@@ -60,7 +61,7 @@ function update_script() {
|
||||
msg_info "Restoring MCP Server"
|
||||
MCP_OWNER=$(stat -c '%U' /opt/homelable/mcp/.env)
|
||||
cd /opt/homelable/mcp
|
||||
$STD uv venv --clear /opt/homelable/mcp/.venv
|
||||
$STD uv venv --python 3.13 --clear /opt/homelable/mcp/.venv
|
||||
$STD uv pip install --python /opt/homelable/mcp/.venv/bin/python -r requirements.txt
|
||||
chown -R "$MCP_OWNER":"$MCP_OWNER" /opt/homelable/mcp
|
||||
systemctl restart homelable-mcp
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
|
||||
setup_uv
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
|
||||
if check_for_gh_release "kapowarr" "Casvt/Kapowarr"; then
|
||||
msg_info "Stopping Service"
|
||||
|
||||
@@ -40,6 +40,7 @@ function update_script() {
|
||||
|
||||
create_backup /opt/kima-hub/backend/.env /opt/kima-hub/frontend/.env
|
||||
|
||||
PYTHON_VERSION="3.13" setup_uv
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "kima-hub" "Chevron7Locked/kima-hub" "tarball"
|
||||
|
||||
restore_backup
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
#!/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}"
|
||||
+2
-1
@@ -41,12 +41,13 @@ function update_script() {
|
||||
CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP="rrd" fetch_and_deploy_gh_release "librenms" "librenms/librenms" "tarball"
|
||||
restore_backup
|
||||
|
||||
PYTHON_VERSION="3.13" setup_uv
|
||||
msg_info "Updating LibreNMS"
|
||||
mkdir -p /opt/librenms/{rrd,logs,bootstrap/cache,storage}
|
||||
chown -R librenms:librenms /opt/librenms
|
||||
chmod 771 /opt/librenms
|
||||
chmod -R ug=rwX /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/logs /opt/librenms/rrd
|
||||
$STD su - librenms -s /bin/bash -c "cd /opt/librenms && uv venv --clear .venv && source .venv/bin/activate && uv pip install -r requirements.txt"
|
||||
$STD su - librenms -s /bin/bash -c "cd /opt/librenms && uv venv --python 3.13 --clear .venv && source .venv/bin/activate && uv pip install -r requirements.txt"
|
||||
$STD su - librenms -s /bin/bash -c "cd /opt/librenms && COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev"
|
||||
$STD su - librenms -s /bin/bash -c "cd /opt/librenms && php8.4 artisan optimize:clear"
|
||||
$STD su - librenms -s /bin/bash -c "cd /opt/librenms && php8.4 artisan migrate --force --isolated"
|
||||
|
||||
@@ -36,6 +36,7 @@ function update_script() {
|
||||
systemctl stop matter-server
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
msg_info "Updating Matter Server"
|
||||
MATTER_VERSION=$(get_latest_github_release "matter-js/python-matter-server")
|
||||
$STD uv pip install --python /opt/matter-server/.venv/bin/python --upgrade "python-matter-server[server]==${MATTER_VERSION}"
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ function update_script() {
|
||||
msg_ok "Backup completed"
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "mealie" "mealie-recipes/mealie" "tarball"
|
||||
PYTHON_VERSION="3.14" UV_PROJECT_DIR="/opt/mealie" setup_uv
|
||||
PYTHON_VERSION="3.12" UV_PROJECT_DIR="/opt/mealie" setup_uv
|
||||
|
||||
msg_info "Restoring Configuration"
|
||||
mv -f /opt/mealie.env /opt/mealie/mealie.env
|
||||
|
||||
@@ -29,6 +29,7 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "mylar3" "MylarComics/mylar3"; then
|
||||
PYTHON_VERSION="3.11" setup_uv
|
||||
fetch_and_deploy_gh_release "mylar3" "MylarComics/mylar3" "tarball"
|
||||
systemctl restart mylar3
|
||||
msg_ok "Updated successfully!"
|
||||
|
||||
@@ -38,6 +38,7 @@ function update_script() {
|
||||
|
||||
CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP=".venv" fetch_and_deploy_gh_release "netalertx" "netalertx/NetAlertX" "tarball"
|
||||
|
||||
PYTHON_VERSION="3.13" setup_uv
|
||||
msg_info "Updating NetAlertX"
|
||||
cd /opt/netalertx
|
||||
$STD uv pip install --python .venv/bin/python -r requirements.txt
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@ function update_script() {
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "norish" "norish-recipes/norish" "tarball"
|
||||
NODE_VERSION="26" NODE_MODULE="pnpm@$(jq -r '.packageManager | split("@")[1]' /opt/norish/package.json)" setup_nodejs
|
||||
PYTHON_VERSION="3.15" setup_uv
|
||||
PYTHON_VERSION="3.14" setup_uv
|
||||
fetch_and_deploy_gh_release "obscura" "$(sed -n 's#^OBSCURA_REPO=https://github.com/##p' /opt/norish/docker/obscura/pin.env)" "prebuild" "v$(sed -n 's/^OBSCURA_VERSION=//p' /opt/norish/docker/obscura/pin.env)" "/opt/obscura" "obscura-$(arch_resolve "x86_64" "aarch64")-linux-stealth.tar.gz"
|
||||
fetch_and_deploy_gh_release "yt-dlp" "yt-dlp/yt-dlp" "singlefile" "latest" "/usr/local/bin" "$(arch_resolve "yt-dlp_linux" "yt-dlp_linux_aarch64")"
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@ function update_script() {
|
||||
systemctl stop openviking
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
msg_info "Updating OpenViking"
|
||||
$STD uv pip install --python /opt/openviking/bin/python --upgrade openviking
|
||||
msg_ok "Updated OpenViking"
|
||||
|
||||
@@ -39,7 +39,6 @@ function update_script() {
|
||||
|
||||
create_backup /var/www/html/data
|
||||
|
||||
PHP_VERSION="8.5" PHP_FPM="YES" setup_php
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "poznote" "timothepoznanski/poznote" "tarball"
|
||||
|
||||
msg_info "Deploying New Version"
|
||||
|
||||
@@ -35,6 +35,7 @@ function update_script() {
|
||||
systemctl stop pyload
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
PYTHON_VERSION="3.13" setup_uv
|
||||
msg_info "Updating ${APP}"
|
||||
$STD uv pip install --python /opt/pyload/.venv --upgrade --prerelease allow "pyload-ng[all]"
|
||||
msg_ok "Updated ${APP}"
|
||||
|
||||
+1
-1
@@ -73,7 +73,7 @@ function update_script() {
|
||||
/opt/romm/frontend/dist/assets/ruffle
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "romm" "rommapp/romm" "tarball" "latest" "/opt/romm"
|
||||
PYTHON_VERSION="3.14" UV_PROJECT_DIR="/opt/romm" setup_uv
|
||||
PYTHON_VERSION="3.13" UV_PROJECT_DIR="/opt/romm" setup_uv
|
||||
echo "__version__ = \"$(cat ~/.romm)\"" >/opt/romm/backend/__version__.py
|
||||
|
||||
find /opt/romm/backend/alembic/versions -maxdepth 1 -type f -name '1.*.py' -delete 2>/dev/null || true
|
||||
|
||||
+2
-2
@@ -35,12 +35,12 @@ function update_script() {
|
||||
systemctl stop scraparr
|
||||
msg_ok "Services Stopped"
|
||||
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
PYTHON_VERSION="3.13" setup_uv
|
||||
fetch_and_deploy_gh_release "scrappar" "thecfu/scraparr" "tarball" "latest" "/opt/scraparr"
|
||||
|
||||
msg_info "Updating Scraparr"
|
||||
cd /opt/scraparr
|
||||
$STD uv venv --clear /opt/scraparr/.venv
|
||||
$STD uv venv --python 3.13 --clear /opt/scraparr/.venv
|
||||
$STD /opt/scraparr/.venv/bin/python -m ensurepip --upgrade
|
||||
$STD /opt/scraparr/.venv/bin/python -m pip install --upgrade pip
|
||||
$STD /opt/scraparr/.venv/bin/python -m pip install -r /opt/scraparr/src/scraparr/requirements.txt
|
||||
|
||||
@@ -43,6 +43,7 @@ function update_script() {
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "subwave" "perminder-klair/subwave" "tarball"
|
||||
fetch_and_deploy_gh_release "liquidsoap" "savonet/liquidsoap" "binary" "$(grep -oP 'savonet/liquidsoap:\Kv[0-9.]+' /opt/subwave/docker/Dockerfile.broadcast)" "" "liquidsoap_*-debian-trixie-ocaml4.14.2-*_$(arch_resolve).deb"
|
||||
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
msg_info "Updating Analyzer and Kokoro"
|
||||
$STD uv pip install --python /opt/analyzer/venv/bin/python librosa==0.11.0 soundfile==0.14.0 pyloudnorm==0.2.0
|
||||
$STD uv pip install --python /opt/kokoro/venv/bin/python kokoro-onnx==0.5.0 soundfile==0.12.1 misaki==0.9.4 pyopenjtalk-plus==0.4.1.post10 cn2an==0.5.24 jieba==0.42.1 ordered-set==4.1.0 pypinyin==0.55.0 pypinyin-dict==0.9.0
|
||||
|
||||
+1
-1
@@ -62,7 +62,7 @@ function update_script() {
|
||||
|
||||
msg_info "Updating Python Environment"
|
||||
cd /opt/suggestarr
|
||||
$STD uv venv --python 3.13 /opt/suggestarr/.venv
|
||||
$STD uv venv --python 3.12 /opt/suggestarr/.venv
|
||||
$STD uv pip install --python /opt/suggestarr/.venv -r /opt/suggestarr/api_service/requirements.txt
|
||||
msg_ok "Updated Python Environment"
|
||||
|
||||
|
||||
+1
-1
@@ -47,7 +47,7 @@ function update_script() {
|
||||
create_backup /opt/tandoor/.env
|
||||
|
||||
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
|
||||
PYTHON_VERSION="3.14" setup_uv
|
||||
PYTHON_VERSION="3.13" setup_uv
|
||||
CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP="config api mediafiles staticfiles" fetch_and_deploy_gh_release "tandoor" "TandoorRecipes/recipes" "tarball" "latest" "/opt/tandoor"
|
||||
|
||||
restore_backup
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
|
||||
setup_uv
|
||||
PYTHON_VERSION="3.13" setup_uv
|
||||
if check_for_gh_release "tianji" "msgbyte/tianji"; then
|
||||
NODE_VERSION="22" NODE_MODULE="pnpm@$(curl -s https://raw.githubusercontent.com/msgbyte/tianji/master/package.json | jq -r '.packageManager | split("@")[1]')" setup_nodejs
|
||||
|
||||
|
||||
+2
-1
@@ -49,9 +49,10 @@ function update_script() {
|
||||
|
||||
restore_backup
|
||||
|
||||
PYTHON_VERSION="3.13" setup_uv
|
||||
msg_info "Updating Python Dependencies"
|
||||
cd /opt/transmute
|
||||
$STD uv venv --clear /opt/transmute/.venv
|
||||
$STD uv venv --python 3.13 --clear /opt/transmute/.venv
|
||||
$STD uv pip install --python /opt/transmute/.venv/bin/python -r requirements.txt
|
||||
msg_ok "Updated Python Dependencies"
|
||||
|
||||
|
||||
@@ -47,6 +47,7 @@ function update_script() {
|
||||
cp -r /opt/trip/src/dist/trip/browser/* /opt/trip/frontend/
|
||||
msg_ok "Updated Frontend"
|
||||
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
msg_info "Updating Backend"
|
||||
cd /opt/trip/backend
|
||||
$STD uv pip install --python /opt/trip/.venv/bin/python -r trip/requirements.txt
|
||||
|
||||
@@ -41,6 +41,8 @@ function update_script() {
|
||||
|
||||
VLLM_BACKEND="$(cat /opt/vllm/.backend 2>/dev/null || echo cuda)"
|
||||
VLLM_VERSION="$(get_latest_github_release "vllm-project/vllm")"
|
||||
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
msg_info "Updating vLLM (${VLLM_BACKEND}, Patience)"
|
||||
case "$VLLM_BACKEND" in
|
||||
rocm)
|
||||
|
||||
@@ -38,7 +38,6 @@ function update_script() {
|
||||
|
||||
create_backup /opt/yourls/user
|
||||
|
||||
PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="mysql,mbstring,gd,xml,curl" setup_php
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "yourls" "YOURLS/YOURLS" "tarball"
|
||||
|
||||
restore_backup
|
||||
|
||||
@@ -140,7 +140,8 @@ $STD npm run build
|
||||
systemctl stop nginx
|
||||
cp /opt/fireshare/app/nginx/prod.conf /etc/nginx/nginx.conf
|
||||
sed -i 's|root /processed/|root /opt/fireshare-processed/|g' /etc/nginx/nginx.conf
|
||||
sed -i 's/^user[[:space:]]\+nginx;/user root;/' /etc/nginx/nginx.conf
|
||||
sed -i 's|alias /data/|alias /opt/fireshare-data/|g' /etc/nginx/nginx.conf
|
||||
sed -i 's/^user[[:space:]]\+[^;]*;/user root;/' /etc/nginx/nginx.conf
|
||||
sed -i 's|root[[:space:]]\+/app/build;|root /opt/fireshare/app/client/build;|' /etc/nginx/nginx.conf
|
||||
sed -i 's/__FIRESHARE_PORT__/80/g' /etc/nginx/nginx.conf
|
||||
cp /opt/fireshare/app/nginx/error.html /etc/nginx/
|
||||
|
||||
@@ -15,7 +15,8 @@ update_os
|
||||
|
||||
setup_deb_based() {
|
||||
msg_info "Setup Garage"
|
||||
download_file "https://garagehq.deuxfleurs.fr/_releases/${garage_release}/$(arch_resolve "x86_64" "aarch64")-unknown-linux-musl/garage" /usr/local/bin/garage
|
||||
GITEA_RELEASE=$(curl -s https://api.github.com/repos/deuxfleurs-org/garage/tags | jq -r '.[0].name')
|
||||
curl -fsSL "https://garagehq.deuxfleurs.fr/_releases/${GITEA_RELEASE}/$(arch_resolve "x86_64" "aarch64")-unknown-linux-musl/garage" -o /usr/local/bin/garage
|
||||
chmod +x /usr/local/bin/garage
|
||||
mkdir -p /var/lib/garage/{data,meta,snapshots}
|
||||
mkdir -p /etc/garage
|
||||
@@ -28,7 +29,7 @@ RPC Secret: $RPC_SECRET
|
||||
Admin Token: $ADMIN_TOKEN
|
||||
Metrics Token: $METRICS_TOKEN
|
||||
EOF
|
||||
printf '%s\n' "$garage_release" >~/.garage
|
||||
echo $GITEA_RELEASE >>~/.garage
|
||||
cat <<EOF >/etc/garage.toml
|
||||
metadata_dir = "/var/lib/garage/meta"
|
||||
data_dir = "/var/lib/garage/data"
|
||||
@@ -90,7 +91,8 @@ setup_alpine() {
|
||||
$STD apk add --no-cache openssl
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
download_file "https://garagehq.deuxfleurs.fr/_releases/${garage_release}/$(arch_resolve "x86_64" "aarch64")-unknown-linux-musl/garage" /usr/local/bin/garage
|
||||
GITEA_RELEASE=$(curl -s https://api.github.com/repos/deuxfleurs-org/garage/tags | jq -r '.[0].name')
|
||||
curl -fsSL "https://garagehq.deuxfleurs.fr/_releases/${GITEA_RELEASE}/$(arch_resolve "x86_64" "aarch64")-unknown-linux-musl/garage" -o /usr/local/bin/garage
|
||||
chmod +x /usr/local/bin/garage
|
||||
mkdir -p /var/lib/garage/{data,meta,snapshots}
|
||||
mkdir -p /etc/garage
|
||||
@@ -103,7 +105,7 @@ RPC Secret: $RPC_SECRET
|
||||
Admin Token: $ADMIN_TOKEN
|
||||
Metrics Token: $METRICS_TOKEN
|
||||
EOF
|
||||
printf '%s\n' "$garage_release" >~/.garage
|
||||
echo $GITEA_RELEASE >>~/.garage
|
||||
cat <<EOF >/etc/garage.toml
|
||||
metadata_dir = "/var/lib/garage/meta"
|
||||
data_dir = "/var/lib/garage/data"
|
||||
@@ -153,11 +155,6 @@ EOF
|
||||
msg_ok "Service active"
|
||||
}
|
||||
|
||||
garage_release=$(curl -fsSL https://git.deuxfleurs.fr/api/v1/repos/Deuxfleurs/garage/releases/latest |
|
||||
jq -er 'select(.draft == false and .prerelease == false) | .tag_name | strings | select(length > 0)') || {
|
||||
msg_error "Could not determine the latest stable Garage release"
|
||||
exit 1
|
||||
}
|
||||
run_os_setup
|
||||
|
||||
motd_ssh
|
||||
|
||||
@@ -37,7 +37,7 @@ fetch_and_deploy_gh_release "kima-hub" "Chevron7Locked/kima-hub" "tarball"
|
||||
|
||||
msg_info "Installing Python Dependencies"
|
||||
$STD uv venv --python 3.13 /opt/kima-hub/venv
|
||||
$STD uv pip install --no-cache --python /opt/kima-hub/venv \
|
||||
$STD uv pip install --no-cache --torch-backend cpu --python /opt/kima-hub/venv \
|
||||
tensorflow \
|
||||
essentia-tensorflow \
|
||||
redis \
|
||||
|
||||
@@ -1,254 +0,0 @@
|
||||
#!/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
|
||||
@@ -30,7 +30,7 @@ msg_ok "Installed Dependencies"
|
||||
|
||||
PG_VERSION="16" setup_postgresql
|
||||
fetch_and_deploy_gh_release "mealie" "mealie-recipes/mealie" "tarball"
|
||||
PYTHON_VERSION="3.14" UV_PROJECT_DIR="/opt/mealie" setup_uv
|
||||
PYTHON_VERSION="3.12" UV_PROJECT_DIR="/opt/mealie" setup_uv
|
||||
PG_DB_NAME="mealie_db" PG_DB_USER="mealie_user" PG_DB_GRANT_SUPERUSER="true" setup_postgresql_db
|
||||
|
||||
if [[ -f /opt/mealie/frontend/pnpm-lock.yaml ]]; then
|
||||
|
||||
@@ -19,7 +19,7 @@ msg_ok "Installed Dependencies"
|
||||
|
||||
PG_VERSION="17" setup_postgresql
|
||||
PG_DB_NAME="norish" PG_DB_USER="norish" setup_postgresql_db
|
||||
PYTHON_VERSION="3.15" setup_uv
|
||||
PYTHON_VERSION="3.14" setup_uv
|
||||
|
||||
fetch_and_deploy_gh_release "norish" "norish-recipes/norish" "tarball"
|
||||
NODE_VERSION="26" NODE_MODULE="pnpm@$(jq -r '.packageManager | split("@")[1]' /opt/norish/package.json)" setup_nodejs
|
||||
|
||||
@@ -17,7 +17,7 @@ msg_info "Installing Dependencies"
|
||||
$STD apt install -y nginx
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
PHP_VERSION="8.5" PHP_FPM="YES" setup_php
|
||||
PHP_VERSION="8.4" PHP_FPM="YES" setup_php
|
||||
|
||||
fetch_and_deploy_gh_release "poznote" "timothepoznanski/poznote" "tarball"
|
||||
|
||||
|
||||
@@ -162,7 +162,7 @@ else
|
||||
fi
|
||||
|
||||
fetch_and_deploy_gh_release "romm" "rommapp/romm" "tarball"
|
||||
PYTHON_VERSION="3.14" UV_PROJECT_DIR="/opt/romm" setup_uv
|
||||
PYTHON_VERSION="3.13" UV_PROJECT_DIR="/opt/romm" setup_uv
|
||||
echo "__version__ = \"$(cat ~/.romm)\"" >/opt/romm/backend/__version__.py
|
||||
|
||||
msg_info "Creating environment file"
|
||||
|
||||
@@ -17,7 +17,7 @@ msg_info "Installing Dependencies"
|
||||
$STD apt install -y build-essential
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
PYTHON_VERSION="3.13" setup_uv
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
fetch_and_deploy_gh_release "suggestarr" "giuseppe99barchetta/SuggestArr" "tarball"
|
||||
@@ -33,7 +33,7 @@ msg_ok "Built Frontend"
|
||||
|
||||
msg_info "Setting up Python Environment"
|
||||
cd /opt/suggestarr
|
||||
$STD uv venv --python 3.13 /opt/suggestarr/.venv
|
||||
$STD uv venv --python 3.12 /opt/suggestarr/.venv
|
||||
$STD uv pip install --python /opt/suggestarr/.venv -r /opt/suggestarr/api_service/requirements.txt
|
||||
msg_ok "Set up Python Environment"
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ msg_ok "Installed Dependencies"
|
||||
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
|
||||
fetch_and_deploy_gh_release "tandoor" "TandoorRecipes/recipes" "tarball" "latest" "/opt/tandoor"
|
||||
PG_VERSION="17" setup_postgresql
|
||||
PYTHON_VERSION="3.14" setup_uv
|
||||
PYTHON_VERSION="3.13" setup_uv
|
||||
PG_DB_USER="tandoor" PG_DB_NAME="db_recipes" PG_DB_EXTENSIONS="unaccent,pg_trgm" setup_postgresql_db
|
||||
SECRET_KEY=$(openssl rand -base64 45 | sed 's/\//\\\//g')
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ msg_ok "Installed Dependencies"
|
||||
|
||||
setup_mariadb
|
||||
MARIADB_DB_NAME="yourls" MARIADB_DB_USER="yourls" setup_mariadb_db
|
||||
PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="mysql,mbstring,gd,xml,curl" setup_php
|
||||
PHP_VERSION="8.3" PHP_FPM="YES" PHP_MODULE="mysql,mbstring,gd,xml,curl" setup_php
|
||||
|
||||
fetch_and_deploy_gh_release "yourls" "YOURLS/YOURLS" "tarball"
|
||||
|
||||
|
||||
Reference in new issue
Block a user