feat(ufw): auto-open firewall ports after app installation
- cloudpanel: allow ftp, smtp, dns, http, https, smtps, imaps, pop3s, and admin panel ports - coolify: allow http, https, and dashboard port after install - pterodactyl: allow http, https, wings daemon (8080), and sftp (2022) ports - uptime-kuma: allow app port on install - proxmox: add open_firewall_ports() with ufw guard checks and new menu option [9]
This commit is contained in:
+5
-1
@@ -93,10 +93,14 @@ install_coolify() {
|
||||
sleep 2
|
||||
done
|
||||
|
||||
ufw_allow 80/tcp "Coolify HTTP"
|
||||
ufw_allow 443/tcp "Coolify HTTPS"
|
||||
ufw_allow "${PORT}/tcp" "Coolify dashboard"
|
||||
|
||||
local duration=$(( $(date +%s) - start_time ))
|
||||
local minutes=$((duration / 60))
|
||||
local seconds=$((duration % 60))
|
||||
|
||||
|
||||
echo ""
|
||||
echo -e "${GREEN}${BOLD}Installation Completed Successfully!${NC}"
|
||||
echo -e "${GRAY}Installation time: ${minutes}m ${seconds}s${NC}"
|
||||
|
||||
Reference in New Issue
Block a user