Commit Graph
49 Commits
Author SHA1 Message Date
bigbong420 6e5f0e25cf Simplify: fix variable bug, deduplicate config patterns, remove dead code 2026-03-29 14:37:03 -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
Lin 539a31f567 Update setup.php
added column description for onion domains, used later in home.php and can also enabled or disabled on public onion list.php via common.php
2026-02-25 14:45:09 +01:00
danwin1210 4448132081 Update mysql path 2025-10-24 11:36:37 +02:00
danwin1210 00b4d33e53 Drop v2 onion support 2025-10-24 11:36:35 +02:00
danwin1210 78ba449fa3 Make scripts translatable 2023-01-22 20:02:41 +01:00
danwin1210 c81ef18f5f Add return type declarations and minor bug fixes 2023-01-21 12:14:24 +01:00
danwin1210 2080a60e9a Move service enabling to setup.php 2022-12-10 21:43:36 +01:00
danwin1210 faea3c384b increase somaxcon to match new linux default value 2022-11-04 14:18:54 +01:00
Daniel Winzen 2681b312aa Fixed SQL query 2021-11-01 21:45:55 +01:00
Daniel Winzen 0c7aaff77a Change default max_streams to 6, which no browser should exceed 2021-10-23 23:53:13 +02:00
Daniel Winzen a1494d23a9 Fix potential permission issues with composer dependencies 2020-09-18 13:06:53 +02:00
Daniel Winzen c2b010e8e6 Added PGP Two Factor Authentication (2FA) 2020-02-17 07:07:02 +01:00
Daniel Winzen e949e4ea48 Bugfixes 2020-02-14 06:43:52 +01:00
Daniel Winzen 988ccef316 fix setup_chroot.sh not being executable 2020-01-26 21:09:12 +01:00
Daniel Winzen 26c4c3c75d set safe file permissions 2020-01-26 14:41:06 +01:00
Daniel Winzen fc244d3182 Move chroot creation/updating to new setup_chroot() function 2020-01-23 21:49:36 +01:00
Daniel Winzen e6946ad1ce Introduced new const to easily change the sites name globally 2020-01-21 21:47:51 +01:00
Daniel Winzen 0bb35ae263 chroot squirrelmail 2020-01-09 07:06:08 +01:00
Daniel Winzen d7c886bb54 Added support for mail() inside chroots 2020-01-05 15:50:08 +01:00
Daniel Winzen f573f79f6c Switch gnupg1 to gnupg2 and set env[HOME] for php correctly 2020-01-05 15:03:20 +01:00
Daniel Winzen 0e0fb54eae Track quota usage and allow upgrading quotas 2019-12-14 21:01:39 +01:00
Daniel Winzen 6b19346b20 Various optimizations 2019-11-02 19:41:05 +01:00
Daniel Winzen 2a592893eb Instances creation is now handled via setup.php 2019-09-28 17:57:43 +02:00
Daniel Winzen ae925a2000 Allow changing instances + add nginx_rewrites table + optimizations 2019-09-22 21:24:27 +02:00
Daniel Winzen 42ee1f65f7 Correctly set session path for adminer now running in chroot 2019-08-09 06:01:03 +02:00
Daniel Winzen e950e42f09 Debian packaging is slacking with adminer updates - fetch from git 2019-08-08 21:37:04 +02:00
Daniel Winzen 287eedf318 More tor instances + guard relays for stability and added disk quota 2019-06-30 16:20:06 +02:00
Daniel Winzen 851a3103be Added canonical tag and store tor/php instance responsibility in db 2019-06-20 18:53:30 +02:00
Daniel Winzen 121a2a8ac2 Add clearnet domain support 2019-02-23 10:42:44 +01:00
Daniel Winzen 31c6020608 Fixed initial setup not creating config files 2019-02-23 07:11:19 +01:00
Daniel Winzen 7da6b8feed Install PHPMyAdmin locally as distributions ship outdated version 2019-01-26 16:48:38 +01:00
Daniel Winzen 7661c0ccdb With more than 10 crashes within 10 minutes we should restart php 2019-01-26 14:17:09 +01:00
Daniel Winzen c46a2584fa Add shell access and scp support 2019-01-06 18:20:02 +01:00
Daniel Winzen 55bc8cd757 Introduce mysqld socket stream forwarding with nginx for chroot jails 2019-01-01 13:47:30 +01:00
Daniel Winzen 0f38bd2449 Improved privilege separation 2019-01-01 02:24:22 +01:00
Daniel Winzen 305c8bc0c3 Fix mariadb 10.3 compatibility by adding default values 2018-12-05 22:19:46 +01:00
Daniel Winzen 4e163a7e2d Fixed syntax error 2018-12-04 15:26:24 +01:00
Daniel Winzen 58b5efb96c Added suspend hidden service feature + disabled php7.0 for new accounts 2018-10-28 08:48:30 +01:00
Daniel Winzen 1884f4b08b php is .ini not .conf 2018-10-26 19:14:29 +02:00
Daniel Winzen 9985ba4864 Add PHP7.3 support and let setup.php write initial config files 2018-10-24 19:59:02 +02:00
Daniel Winzen d9e496930d Add HiddenServiceMaxStreams option and service_instances table 2018-10-20 20:44:10 +02:00
Daniel Winzen 2cee59dc6f Structure changes for future features 2018-10-20 18:20:27 +02:00
Daniel Winzen 1f2ff2176b Save DB information in separate table 2018-10-17 21:50:20 +02:00
Daniel Winzen 6eb068222c Refactor DB foreign keys to auto_incrementing id instead of onion
Allows moving domains into separate table at a later stage
2018-10-16 21:09:16 +02:00
Daniel Winzen 7bd2e79f06 Separate nginx sockets for each site to make hoster identification harder 2018-03-08 20:57:42 +01:00
Daniel Winzen 6b0759be73 Added admin panel + optional manual approval for new sites 2018-02-25 21:25:05 +01:00
Daniel Winzen fa363efaec Bugfixes 2017-05-06 18:29:19 +02:00
Daniel Winzen e0b35fb943 Initial commit 2017-04-30 19:32:42 +02:00