Files
ProxmoxVE/install/caddy-install.sh

46 lines
1.1 KiB
Bash
Raw Normal View History

2024-05-11 19:22:24 -04:00
#!/usr/bin/env bash
# Copyright (c) 2021-2026 tteck
# Author: tteck (tteckster) | Co-Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://caddyserver.com/
2024-05-11 19:22:24 -04:00
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
2024-05-11 19:22:24 -04:00
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Dependencies"
2026-01-13 08:09:39 +01:00
$STD apt install -y \
debian-keyring \
debian-archive-keyring \
apt-transport-https
2024-05-11 19:22:24 -04:00
msg_ok "Installed Dependencies"
msg_info "Installing Caddy"
2026-01-13 08:09:39 +01:00
setup_deb822_repo \
"caddy" \
"https://dl.cloudsmith.io/public/caddy/stable/gpg.key" \
"https://dl.cloudsmith.io/public/caddy/stable/deb/debian" \
"any-version"
$STD apt install -y caddy
2024-05-11 19:22:24 -04:00
msg_ok "Installed Caddy"
read -r -p "${TAB3}Would you like to install xCaddy Addon? <y/N> " prompt
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
setup_go
2026-01-13 08:09:39 +01:00
fetch_and_deploy_gh_release "xcaddy" "caddyserver/xcaddy" "binary"
msg_info "Setup xCaddy"
2026-01-13 08:09:39 +01:00
$STD apt install -y git
$STD xcaddy build
msg_ok "Setup xCaddy"
fi
2024-05-11 19:22:24 -04:00
motd_ssh
customize
cleanup_lxc