diff --git a/ct/nezha.sh b/ct/nezha.sh new file mode 100644 index 00000000..6acdf924 --- /dev/null +++ b/ct/nezha.sh @@ -0,0 +1,72 @@ +#!/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: GitHub Copilot (GPT-5.3-Codex) +# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE +# Source: https://github.com/nezhahq/nezha + +APP="Nezha" +var_tags="${var_tags:-monitoring;infrastructure;analytics}" +var_cpu="${var_cpu:-2}" +var_ram="${var_ram:-2048}" +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/nezha ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "nezha" "nezhahq/nezha"; then + msg_info "Stopping Service" + systemctl stop nezha + msg_ok "Stopped Service" + + msg_info "Backing up Data" + if [[ -d /opt/nezha/data ]]; then + cp -r /opt/nezha/data /opt/nezha_data_backup + fi + msg_ok "Backed up Data" + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "nezha" "nezhahq/nezha" "prebuild" "latest" "/opt/nezha" "dashboard-linux-amd64.zip" + + if [[ -f /opt/nezha/dashboard-linux-amd64 ]]; then + mv /opt/nezha/dashboard-linux-amd64 /opt/nezha/dashboard + chmod +x /opt/nezha/dashboard + fi + + msg_info "Restoring Data" + if [[ -d /opt/nezha_data_backup ]]; then + cp -r /opt/nezha_data_backup/. /opt/nezha/data + rm -rf /opt/nezha_data_backup + fi + msg_ok "Restored Data" + + msg_info "Starting Service" + systemctl start nezha + 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 "${TAB}${GATEWAY}${BGN}http://${IP}:8008${CL}" diff --git a/ct/shiori.sh b/ct/shiori.sh new file mode 100644 index 00000000..6e8e526b --- /dev/null +++ b/ct/shiori.sh @@ -0,0 +1,69 @@ +#!/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: GitHub Copilot (GPT-5.3-Codex) +# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE +# Source: https://github.com/go-shiori/shiori + +APP="Shiori" +var_tags="${var_tags:-bookmarks;read-it-later;notes}" +var_cpu="${var_cpu:-1}" +var_ram="${var_ram:-1024}" +var_disk="${var_disk:-4}" +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/shiori ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "shiori" "go-shiori/shiori"; then + msg_info "Stopping Service" + systemctl stop shiori + msg_ok "Stopped Service" + + msg_info "Backing up Data" + if [[ -d /opt/shiori/data ]]; then + cp -r /opt/shiori/data /opt/shiori_data_backup + fi + msg_ok "Backed up Data" + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "shiori" "go-shiori/shiori" "prebuild" "latest" "/opt/shiori" "*Linux_x86_64.tar.gz" + + chmod +x /opt/shiori/shiori + + msg_info "Restoring Data" + if [[ -d /opt/shiori_data_backup ]]; then + cp -r /opt/shiori_data_backup/. /opt/shiori/data + rm -rf /opt/shiori_data_backup + fi + msg_ok "Restored Data" + + msg_info "Starting Service" + systemctl start shiori + 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 "${TAB}${GATEWAY}${BGN}http://${IP}:8080${CL}" diff --git a/install/nezha-install.sh b/install/nezha-install.sh new file mode 100644 index 00000000..1089751a --- /dev/null +++ b/install/nezha-install.sh @@ -0,0 +1,48 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: GitHub Copilot (GPT-5.3-Codex) +# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE +# Source: https://github.com/nezhahq/nezha + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +fetch_and_deploy_gh_release "nezha" "nezhahq/nezha" "prebuild" "latest" "/opt/nezha" "dashboard-linux-amd64.zip" + +msg_info "Preparing Application Files" +if [[ -f /opt/nezha/dashboard-linux-amd64 ]]; then + mv /opt/nezha/dashboard-linux-amd64 /opt/nezha/dashboard +fi +chmod +x /opt/nezha/dashboard +mkdir -p /opt/nezha/data +msg_ok "Prepared Application Files" + +msg_info "Creating Service" +cat </etc/systemd/system/nezha.service +[Unit] +Description=Nezha Monitoring Dashboard +After=network.target + +[Service] +Type=simple +User=root +WorkingDirectory=/opt/nezha +ExecStart=/opt/nezha/dashboard +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now nezha +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/shiori-install.sh b/install/shiori-install.sh new file mode 100644 index 00000000..a0b4c48f --- /dev/null +++ b/install/shiori-install.sh @@ -0,0 +1,52 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: GitHub Copilot (GPT-5.3-Codex) +# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE +# Source: https://github.com/go-shiori/shiori + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +fetch_and_deploy_gh_release "shiori" "go-shiori/shiori" "prebuild" "latest" "/opt/shiori" "*Linux_x86_64.tar.gz" + +msg_info "Configuring Shiori" +mkdir -p /opt/shiori/data +SECRET_KEY=$(tr -d '-' /opt/shiori/.env +SHIORI_DIR=/opt/shiori/data +SHIORI_HTTP_PORT=8080 +SHIORI_HTTP_ADDRESS=0.0.0.0: +SHIORI_HTTP_SECRET_KEY=${SECRET_KEY} +EOF +msg_ok "Configured Shiori" + +msg_info "Creating Service" +cat </etc/systemd/system/shiori.service +[Unit] +Description=Shiori Bookmark Manager +After=network.target + +[Service] +Type=simple +User=root +WorkingDirectory=/opt/shiori +EnvironmentFile=/opt/shiori/.env +ExecStart=/opt/shiori/shiori server +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now shiori +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/json/nagios.json b/json/nagios.json index 37582b04..79efd673 100644 --- a/json/nagios.json +++ b/json/nagios.json @@ -1,44 +1,44 @@ { - "name": "Nagios Core", - "slug": "nagios", - "categories": [ - 9 - ], - "date_created": "2026-04-25", - "type": "ct", - "updateable": true, - "privileged": false, - "interface_port": 80, - "documentation": "https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/quickstart.html", - "website": "https://www.nagios.org/projects/nagios-core/", - "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/nagios.webp", - "description": "Nagios Core is an open-source monitoring platform for hosts, services, and network infrastructure with a classic web interface.", - "install_methods": [ - { - "type": "default", - "script": "ct/nagios.sh", - "config_path": "/etc/nagios4/nagios.cfg", - "resources": { - "cpu": 2, - "ram": 2048, - "hdd": 20, - "os": "Debian", - "version": "13" - } - } - ], - "default_credentials": { - "username": "nagiosadmin", - "password": "nagiosadmin" - }, - "notes": [ - { - "text": "After first login, change the default web password in /etc/nagios4/htpasswd.users.", - "type": "warning" + "name": "Nagios Core", + "slug": "nagios", + "categories": [ + 9 + ], + "date_created": "2026-04-25", + "type": "ct", + "updateable": true, + "privileged": false, + "interface_port": 80, + "documentation": "https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/quickstart.html", + "website": "https://www.nagios.org/projects/nagios-core/", + "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/nagios.webp", + "description": "Nagios Core is an open-source monitoring platform for hosts, services, and network infrastructure with a classic web interface.", + "install_methods": [ + { + "type": "default", + "script": "ct/nagios.sh", + "config_path": "/etc/nagios4/nagios.cfg", + "resources": { + "cpu": 2, + "ram": 2048, + "hdd": 20, + "os": "Debian", + "version": "13" + } + } + ], + "default_credentials": { + "username": "nagiosadmin", + "password": "nagiosadmin" }, - { - "text": "Web UI path is /nagios4 on port 80.", - "type": "info" - } - ] -} + "notes": [ + { + "text": "After first login, change the default web password in /etc/nagios4/htpasswd.users.", + "type": "warning" + }, + { + "text": "Web UI path is /nagios4 on port 80.", + "type": "info" + } + ] +} \ No newline at end of file diff --git a/json/nezha.json b/json/nezha.json new file mode 100644 index 00000000..48d4c84b --- /dev/null +++ b/json/nezha.json @@ -0,0 +1,44 @@ +{ + "name": "Nezha", + "slug": "nezha", + "categories": [ + 9 + ], + "date_created": "2026-04-25", + "type": "ct", + "updateable": true, + "privileged": false, + "interface_port": 8008, + "documentation": "https://nezha.wiki/en_US/guide/dashboard.html", + "website": "https://nezha.wiki/en_US/", + "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/nezha.webp", + "config_path": "/opt/nezha/data/config.yaml", + "description": "Nezha is a lightweight server and website monitoring dashboard with real-time status, alerts, and remote operation features.", + "install_methods": [ + { + "type": "default", + "script": "ct/nezha.sh", + "resources": { + "cpu": 2, + "ram": 2048, + "hdd": 8, + "os": "Debian", + "version": "13" + } + } + ], + "default_credentials": { + "username": "admin", + "password": "admin" + }, + "notes": [ + { + "text": "Change the default admin password immediately after first login.", + "type": "warning" + }, + { + "text": "Dashboard is exposed on port 8008 by default.", + "type": "info" + } + ] +} diff --git a/json/shiori.json b/json/shiori.json new file mode 100644 index 00000000..b571945a --- /dev/null +++ b/json/shiori.json @@ -0,0 +1,44 @@ +{ + "name": "Shiori", + "slug": "shiori", + "categories": [ + 12 + ], + "date_created": "2026-04-25", + "type": "ct", + "updateable": true, + "privileged": false, + "interface_port": 8080, + "documentation": "https://github.com/go-shiori/shiori/tree/master/docs", + "website": "https://github.com/go-shiori/shiori", + "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/shiori.webp", + "config_path": "/opt/shiori/.env", + "description": "Shiori is a simple self-hosted bookmark manager with web UI and offline archive support, distributed as a single binary.", + "install_methods": [ + { + "type": "default", + "script": "ct/shiori.sh", + "resources": { + "cpu": 1, + "ram": 1024, + "hdd": 4, + "os": "Debian", + "version": "13" + } + } + ], + "default_credentials": { + "username": "shiori", + "password": "gopher" + }, + "notes": [ + { + "text": "Change the default account password after first login.", + "type": "warning" + }, + { + "text": "Data and SQLite database are stored in /opt/shiori/data.", + "type": "info" + } + ] +}