CaddyManager updates
Some checks failed
Update GitHub Versions (New) / update-github-versions (push) Has been cancelled
Crawl Versions from newreleases.io / crawl-versions (push) Has been cancelled
Crawl Versions from github / crawl-versions (push) Has been cancelled

This commit is contained in:
tremor021 2026-02-19 11:22:11 +01:00
parent 32436eed56
commit 427a3e8fa2
3 changed files with 44 additions and 6 deletions

View File

@ -8,7 +8,7 @@ source <(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxV
APP="CaddyManager"
var_tags="${var_tags:-}"
var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-512}"
var_ram="${var_ram:-1024}"
var_disk="${var_disk:-4}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"

View File

@ -0,0 +1,35 @@
{
"name": "CaddyManager",
"slug": "caddymanager",
"categories": [
21
],
"date_created": "2026-02-11",
"type": "ct",
"updateable": true,
"privileged": false,
"interface_port": 80,
"documentation": "https://caddymanager.online/#/docs",
"config_path": "/opt/caddymanager/caddymanager.env",
"website": "https://caddymanager.online",
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/caddymanager.webp",
"description": "Caddy Manager is a free, open source tool to easily manage your Caddy web servers with a modern web interace. Simplify your workflow and focus on what matters.",
"install_methods": [
{
"type": "default",
"script": "ct/caddymanager.sh",
"resources": {
"cpu": 1,
"ram": 1024,
"hdd": 4,
"os": "Debian",
"version": "13"
}
}
],
"default_credentials": {
"username": "admin",
"password": "caddyrocks"
},
"notes": []
}

View File

@ -14,14 +14,12 @@ network_check
update_os
msg_info "Installing Dependencies"
$STD apt install -y \
git \
build-essential \
caddy
$STD apt install -y caddy
msg_ok "Installed Dependencies"
NODE_VERSION=22 setup_nodejs
fetch_and_deploy_gh_release "caddymanager" "caddymanager/caddymanager" "tarball"
systemctl stop caddy
systemctl disable -q caddy
msg_info "Configuring CaddyManager"
@ -30,6 +28,7 @@ cd /opt/caddymanager/backend
$STD npm install
cd /opt/caddymanager/frontend
$STD npm install
$STD npm run build
cat <<EOF >/opt/caddymanager/caddymanager.env
PORT=3000
@ -68,7 +67,8 @@ EOF
cat <<EOF >/etc/systemd/system/caddymanager-frontend.service
[Unit]
Description=Caddymanager Frontend Service
After=network.target
After=network.target caddymanager-backend.service
Requires=caddymanager-backend.service
[Service]
WorkingDirectory=/opt/caddymanager/frontend
@ -79,6 +79,9 @@ EnvironmentFile=/opt/caddymanager/caddymanager.env
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now caddymanager-backend
systemctl enable -q --now caddymanager-frontend
msg_ok "Created services"
motd_ssh
customize