Delete nextexplorer (ct) after migration to ProxmoxVE (#1608)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
99319cd358
commit
080f394e2d
@@ -1,6 +0,0 @@
|
|||||||
__ ______ __
|
|
||||||
____ ___ _ __/ /_/ ____/ ______ / /___ ________ _____
|
|
||||||
/ __ \/ _ \| |/_/ __/ __/ | |/_/ __ \/ / __ \/ ___/ _ \/ ___/
|
|
||||||
/ / / / __/> </ /_/ /____> </ /_/ / / /_/ / / / __/ /
|
|
||||||
/_/ /_/\___/_/|_|\__/_____/_/|_/ .___/_/\____/_/ \___/_/
|
|
||||||
/_/
|
|
||||||
@@ -1,76 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
|
||||||
|
|
||||||
# Copyright (c) 2021-2026 community-scripts ORG
|
|
||||||
# Author: vhsdream
|
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE
|
|
||||||
# Source: https://github.com/nxzai/nextExplorer
|
|
||||||
|
|
||||||
APP="nextExplorer"
|
|
||||||
var_tags="${var_tags:-files;documents}"
|
|
||||||
var_cpu="${var_cpu:-2}"
|
|
||||||
var_ram="${var_ram:-3072}"
|
|
||||||
var_disk="${var_disk:-8}"
|
|
||||||
var_os="${var_os:-debian}"
|
|
||||||
var_version="${var_version:-13}"
|
|
||||||
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/nextExplorer ]]; then
|
|
||||||
msg_error "No ${APP} Installation Found!"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
NODE_VERSION="24" setup_nodejs
|
|
||||||
|
|
||||||
if check_for_gh_release "nextExplorer" "nxzai/nextExplorer"; then
|
|
||||||
msg_info "Stopping nextExplorer"
|
|
||||||
$STD systemctl stop nextexplorer
|
|
||||||
msg_ok "Stopped nextExplorer"
|
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "nextExplorer" "nxzai/nextExplorer" "tarball" "latest" "/opt/nextExplorer"
|
|
||||||
|
|
||||||
msg_info "Updating nextExplorer"
|
|
||||||
APP_DIR="/opt/nextExplorer/app"
|
|
||||||
mkdir -p "$APP_DIR"
|
|
||||||
cd /opt/nextExplorer
|
|
||||||
export NODE_ENV=production
|
|
||||||
$STD npm ci --omit=dev --workspace backend
|
|
||||||
mv node_modules "$APP_DIR"
|
|
||||||
mv backend/{src,package.json} "$APP_DIR"
|
|
||||||
unset NODE_ENV
|
|
||||||
export NODE_ENV=development
|
|
||||||
$STD npm ci --workspace frontend
|
|
||||||
$STD npm run -w frontend build -- --sourcemap false
|
|
||||||
unset NODE_ENV
|
|
||||||
mv frontend/dist/ "$APP_DIR"/src/public
|
|
||||||
chown -R explorer:explorer "$APP_DIR" /etc/nextExplorer
|
|
||||||
sed -i "\|version|s|$(jq -cr '.version' ${APP_DIR}/package.json)|$(cat ~/.nextexplorer)|" "$APP_DIR"/package.json
|
|
||||||
sed -i 's/app.js/server.js/' /etc/systemd/system/nextexplorer.service && systemctl daemon-reload
|
|
||||||
msg_ok "Updated nextExplorer"
|
|
||||||
|
|
||||||
msg_info "Starting nextExplorer"
|
|
||||||
$STD systemctl start nextexplorer
|
|
||||||
msg_ok "Started nextExplorer"
|
|
||||||
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 "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"
|
|
||||||
@@ -1,164 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Copyright (c) 2021-2026 community-scripts ORG
|
|
||||||
# Author: vhsdream
|
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE
|
|
||||||
# Source: https://github.com/nxzai/nextExplorer
|
|
||||||
|
|
||||||
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 \
|
|
||||||
ripgrep \
|
|
||||||
imagemagick \
|
|
||||||
ffmpeg \
|
|
||||||
libva-drm2 \
|
|
||||||
libva2 \
|
|
||||||
mesa-va-drivers \
|
|
||||||
vainfo
|
|
||||||
msg_ok "Installed Dependencies"
|
|
||||||
|
|
||||||
NODE_VERSION="24" setup_nodejs
|
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "nextExplorer" "nxzai/nextExplorer" "tarball" "latest" "/opt/nextExplorer"
|
|
||||||
|
|
||||||
msg_info "Building nextExplorer"
|
|
||||||
APP_DIR="/opt/nextExplorer/app"
|
|
||||||
LOCAL_IP="$(hostname -I | awk '{print $1}')"
|
|
||||||
mkdir -p "$APP_DIR"
|
|
||||||
mkdir -p /etc/nextExplorer
|
|
||||||
cd /opt/nextExplorer
|
|
||||||
export NODE_ENV=production
|
|
||||||
$STD npm ci --omit=dev --workspace backend
|
|
||||||
mv node_modules "$APP_DIR"
|
|
||||||
mv backend/{src,package.json} "$APP_DIR"
|
|
||||||
unset NODE_ENV
|
|
||||||
|
|
||||||
export NODE_ENV=development
|
|
||||||
export NODE_OPTIONS="--max-old-space-size=2048"
|
|
||||||
$STD npm ci --workspace frontend
|
|
||||||
$STD npm run -w frontend build -- --sourcemap false
|
|
||||||
unset NODE_ENV
|
|
||||||
mv frontend/dist/ "$APP_DIR"/src/public
|
|
||||||
msg_ok "Built nextExplorer"
|
|
||||||
|
|
||||||
msg_info "Configuring nextExplorer"
|
|
||||||
SECRET=$(openssl rand -hex 32)
|
|
||||||
cat <<EOF >/etc/nextExplorer/.env
|
|
||||||
NODE_ENV=production
|
|
||||||
PORT=3000
|
|
||||||
|
|
||||||
VOLUME_ROOT=/mnt
|
|
||||||
CONFIG_DIR=/etc/nextExplorer
|
|
||||||
CACHE_DIR=/etc/nextExplorer/cache
|
|
||||||
# USER_ROOT=
|
|
||||||
|
|
||||||
PUBLIC_URL=${LOCAL_IP}:3000
|
|
||||||
# TRUST_PROXY=
|
|
||||||
# CORS_ORIGINS=
|
|
||||||
|
|
||||||
TERMINAL_ENABLED=false
|
|
||||||
|
|
||||||
LOG_LEVEL=info
|
|
||||||
DEBUG=false
|
|
||||||
ENABLE_HTTP_LOGGING=false
|
|
||||||
|
|
||||||
AUTH_ENABLED=true
|
|
||||||
AUTH_MODE=both
|
|
||||||
SESSION_SECRET="${SECRET}"
|
|
||||||
# AUTH_MAX_FAILED=
|
|
||||||
# AUTH_LOCK_MINUTES=
|
|
||||||
# AUTH_USER_EMAIL=
|
|
||||||
# AUTH_USER_PASSWORD=
|
|
||||||
|
|
||||||
# OIDC_ENABLED=
|
|
||||||
# OIDC_ISSUER=
|
|
||||||
# OIDC_AUTHORIZATION_URL=
|
|
||||||
# OIDC_TOKEN_URL=
|
|
||||||
# OIDC_USERINFO_URL=
|
|
||||||
# OIDC_CLIENT_ID=
|
|
||||||
# OIDC_CLIENT_SECRET=
|
|
||||||
# OIDC_CALLBACK_URL=
|
|
||||||
# OIDC_LOGOUT_URL=
|
|
||||||
# OIDC_SCOPES=
|
|
||||||
# OIDC_AUTO_CREATE_USERS=true
|
|
||||||
|
|
||||||
# SEARCH_DEEP=
|
|
||||||
# SEARCH_RIPGREP=
|
|
||||||
# SEARCH_MAX_FILESIZE=
|
|
||||||
|
|
||||||
# ONLYOFFICE_URL=
|
|
||||||
# ONLYOFFICE_SECRET=
|
|
||||||
# ONLYOFFICE_LANG=
|
|
||||||
# ONLYOFFICE_FORCE_SAVE=
|
|
||||||
# ONLYOFFICE_FILE_EXTENSIONS=
|
|
||||||
|
|
||||||
# COLLABORA_URL=
|
|
||||||
# COLLABORA_DISCOVERY_URL=
|
|
||||||
# COLLABORA_SECRET=
|
|
||||||
# COLLABORA_LANG=
|
|
||||||
# COLLABORA_FILE_EXTENSIONS=
|
|
||||||
|
|
||||||
SHOW_VOLUME_USAGE=true
|
|
||||||
# USER_DIR_ENABLED=
|
|
||||||
# SKIP_HOME=
|
|
||||||
|
|
||||||
# EDITOR_EXTENSIONS=
|
|
||||||
|
|
||||||
# FFMPEG_PATH=
|
|
||||||
# FFPROBE_PATH=
|
|
||||||
|
|
||||||
## Hardware acceleration
|
|
||||||
# FFMPEG_HWACCEL=vaapi
|
|
||||||
# FFMPEG_HWACCEL_DEVICE=/dev/dri/renderD128
|
|
||||||
# FFMPEG_HWACCEL_OUTPUT_FORMAT=nv12
|
|
||||||
|
|
||||||
FAVORITES_DEFAULT_ICON=outline.StarIcon
|
|
||||||
|
|
||||||
SHARES_ENABLED=true
|
|
||||||
# SHARES_TOKEN_LENGTH=10
|
|
||||||
# SHARES_MAX_PER_USER=100
|
|
||||||
# SHARES_DEFAULT_EXPIRY_DAYS=30
|
|
||||||
# SHARES_GUEST_SESSION_HOURS=24
|
|
||||||
# SHARES_ALLOW_PASSWORD=true
|
|
||||||
# SHARES_ALLOW_ANONYMOUS=true
|
|
||||||
EOF
|
|
||||||
chmod 600 /etc/nextExplorer/.env
|
|
||||||
$STD useradd -U -s /usr/sbin/nologin -m -d /home/explorer explorer
|
|
||||||
chown -R explorer:explorer "$APP_DIR" /etc/nextExplorer
|
|
||||||
sed -i "\|version|s|$(jq -cr '.version' ${APP_DIR}/package.json)|$(cat ~/.nextexplorer)|" "$APP_DIR"/package.json
|
|
||||||
msg_ok "Configured nextExplorer"
|
|
||||||
|
|
||||||
msg_info "Creating nextExplorer Service"
|
|
||||||
cat <<EOF >/etc/systemd/system/nextexplorer.service
|
|
||||||
[Unit]
|
|
||||||
Description=nextExplorer Service
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
User=explorer
|
|
||||||
Group=explorer
|
|
||||||
WorkingDirectory=/opt/nextExplorer/app
|
|
||||||
EnvironmentFile=/etc/nextExplorer/.env
|
|
||||||
ExecStart=/usr/bin/node ./src/server.js
|
|
||||||
Restart=always
|
|
||||||
RestartSec=5
|
|
||||||
StandardOutput=journal
|
|
||||||
StandardError=journal
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
$STD systemctl enable -q --now nextexplorer
|
|
||||||
msg_ok "Created nextExplorer Service"
|
|
||||||
|
|
||||||
motd_ssh
|
|
||||||
customize
|
|
||||||
cleanup_lxc
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "nextExplorer",
|
|
||||||
"slug": "nextexplorer",
|
|
||||||
"categories": [
|
|
||||||
11,
|
|
||||||
12
|
|
||||||
],
|
|
||||||
"date_created": "2025-12-11",
|
|
||||||
"type": "ct",
|
|
||||||
"updateable": true,
|
|
||||||
"privileged": false,
|
|
||||||
"interface_port": 3000,
|
|
||||||
"documentation": "https://explorer.nxz.ai",
|
|
||||||
"website": "https://github.com/nxzai/nextExplorer",
|
|
||||||
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/nextexplorer.webp",
|
|
||||||
"config_path": "/etc/nextExplorer/.env",
|
|
||||||
"description": "Self-hosted file access for teams, homelabs, and agencies with a refined interface.",
|
|
||||||
"install_methods": [
|
|
||||||
{
|
|
||||||
"type": "default",
|
|
||||||
"script": "ct/nextexplorer.sh",
|
|
||||||
"resources": {
|
|
||||||
"cpu": 2,
|
|
||||||
"ram": 3072,
|
|
||||||
"hdd": 8,
|
|
||||||
"os": "Debian",
|
|
||||||
"version": "13"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"default_credentials": {
|
|
||||||
"username": null,
|
|
||||||
"password": null
|
|
||||||
},
|
|
||||||
"notes": [
|
|
||||||
{
|
|
||||||
"text": "Bind mount your volume(s) in the `/mnt` directory",
|
|
||||||
"type": "info"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user