22 Commits
Author SHA1 Message Date
bigbong420 3c1630fd68 Point install/update scripts to DanWin/hosting master for upstream PR 2026-03-30 12:32:54 -04:00
bigbong420 920a8217e3 Fix: self-assignment bug in all_versions, set postfix SQL password and host 2026-03-30 12:15:13 -04:00
bigbong420 8d7dd9bab3 Prevent Ubuntu auto-reboot during apt upgrade 2026-03-30 10:39:11 -04:00
bigbong420 cd9f0721a8 Update README for Debian 13/Ubuntu 24.04, add install script docs and clustering TODO 2026-03-30 10:30:16 -04:00
bigbong420 94815f8c13 Rewrite README with quick install, update docs, clustering TODO 2026-03-30 10:25:18 -04:00
bigbong420 3380a9113f Fix Ubuntu: bind permissions, nginx module conflicts 2026-03-30 10:20:45 -04:00
bigbong420 d6fca30555 Fix bind9/named service name for Ubuntu compatibility 2026-03-30 10:13:54 -04:00
bigbong420 fdb63abf4d Support Ubuntu 24.04: fix OS detection, skip Sury repo on Ubuntu 2026-03-29 18:06:13 -04:00
bigbong420 6e5f0e25cf Simplify: fix variable bug, deduplicate config patterns, remove dead code 2026-03-29 14:37:03 -04:00
bigbong420 4ac6d60d02 Autoscale: use php8.5, support a-z then aa/ab/etc 2026-03-29 14:17:00 -04:00
bigbong420 8d1afbdfd4 Auto-scale instances per 250 accounts via hourly cron 2026-03-29 14:15:58 -04:00
bigbong420 6b1f324f5e Auto-scale instance count based on server RAM 2026-03-29 14:14:05 -04:00
bigbong420 c148db231d Clean up shell script comments 2026-03-29 14:11:43 -04:00
bigbong420 227b632ad8 Update script: auto-detect binary changes and show what needs rebuilding 2026-03-29 14:07:40 -04:00
bigbong420 e261f89f5b Add update.sh for updating code/configs without full reinstall 2026-03-29 14:06:23 -04:00
bigbong420 b70bd78897 Fix: reliable FPM restart on PHP version switch (stop all, unlink sockets, start all) 2026-03-29 12:52:06 -04:00
bigbong420 a08879d460 Fix: composer retry on DNS failure, enable FPM services in setup step 2026-03-29 12:46:58 -04:00
bigbong420 f54b6decb6 Fix: add libpam0g-dev to build deps (needed for c-client) 2026-03-29 11:57:10 -04:00
bigbong420 1c0db5b6a6 Fix: move c-client build after build deps install (needs make) 2026-03-29 11:55:34 -04:00
bigbong420 63ac97bfad Fix: preserve CLI state through exec re-launch via env vars 2026-03-29 11:52:49 -04:00
bigbong420 b77bc6cdd5 Fix: pass CLI args through exec re-launch for curl|bash usage 2026-03-29 11:51:33 -04:00
bigbong420 229ce3a0dc Debian 13 support, PHP 8.4/8.5, security hardening, install script
- Debian 13 (Trixie) compatibility:
  - Build uw-imap c-client from source (removed from trixie)
  - Fix OpenSSL 3 include paths for c-client
  - Split libnginx-mod-http-brotli package name
  - Add -lgomp and -std=c++17 to PHP CXXFLAGS
  - Fix Dovecot 2.4 config syntax in setup
  - Use 127.0.0.1 for DB (works in FPM chroot)

- PHP version updates:
  - Add PHP 8.5.4 and 8.4.19
  - Remove PHP 8.1 (EOL)
  - Update igbinary to master, imagick to 3.8.1, brotli to 0.18.3
  - Remove php-rar (unmaintained, incompatible with 8.4+)
  - setup.php uses DEFAULT_PHP_VERSION for FPM sockets
  - Users can switch PHP version from dashboard

- Security hardening:
  - CSRF tokens use bin2hex(random_bytes(32))
  - Admin password uses password_hash/password_verify
  - Session regeneration on login
  - All output escaped with htmlspecialchars
  - Nginx rewrite rules validated (flag whitelist, reject injection)
  - Path traversal protection in FileManager
  - SQL injection fix in password change
  - Security headers (CSP script-src:none, X-Frame-Options, etc)
  - Onion private keys encrypted at rest (libsodium)
  - SFTP password encrypted in session with expiry
  - Admin brute-force rate limiting
  - CSRF token on login form
  - Zero JavaScript - all pages work without JS
  - mt_rand replaced with random_int
  - Cookie secure flag precedence fix
  - PDO ERRMODE_EXCEPTION
  - Generic login error messages (no username enumeration)
  - FileManager rename validation

- Self-bootstrapping install.sh:
  - Auto-clones repo if run standalone (curl | bash support)
  - Interactive prompts or --non-interactive flag
  - Optional vanity .onion generation via mkp224o
  - Password generation or custom input
  - Credentials saved to /root/hosting-credentials.txt
2026-03-29 11:44:22 -04:00