Repository navigation
Releases
v1.9.0
Release Notes — v1.9.0
Version Catalog & Update Center
This release adds guided version selection when installing services and a new Update Center for in-place upgrades and major version migrations. hideploy.sh, README.md, and the zip are updated.
Not tested on real Docker yet. The sandbox has no Docker, so the script logic was tested against a simulated Docker (version parsing, templates, update rollback, PostgreSQL and MariaDB major upgrades). Before relying on it, try it once on a test server. I could not observe a real installation of the new images (e.g. mariadb:12.3) or a Dockerfile build with PHP 8.5.
Versions Verified Online
PostgreSQL 18.6 is confirmed by the official postgresql.org site. The versions now suggested:
| Technology | Suggested version |
|---|---|
| MariaDB | 12.3 (LTS) |
| Redis | 8 |
| PHP | 8.5 |
| Node | 26 |
Two findings from that research are handled in the script:
- PostgreSQL mount path: In version 18 the mount path differs. Pointing the 18 path at 17 silently loses data, so the script manages this itself.
- OPcache on PHP 8.5: Installing opcache with
docker-php-ext-installfails on PHP 8.5. The new Dockerfile installs it only for older versions.
Version Selection with Suggestions
When installing any service, a short list with a suggestion and the reason is shown. You can accept it, pick from the list, or type any custom tag. The tag is checked against the registry.
PHP and Node matched to the project: These are read from composer.json and package.json. For example, Laravel 11 is limited to PHP ≤ 8.4. In Menu 3, where the project is not yet on the server, the same values are asked from you. In the generated Dockerfile, the version can be changed from .deploy.env on the server without a commit.
New Menu 11: Update Center
- In-place updates (e.g. 12.3.2 → 12.3.3): backup, recreate, health check, and automatic rollback.
- Major upgrades for PostgreSQL, MariaDB, and Redis: dump, new volume, restore, table-count comparison, and automatic rollback. The old volume is kept until you delete it. PostgreSQL uses
pg_dumpall; for MariaDB, each project's user and database are created from.env. - View and change each project's PHP/Node version, along with its end-of-support date.
- A reminder on the main page after 90 days without a check.
Existing Servers
Servers on 1.8.0 are left untouched. The current version is read from the installed compose, so PostgreSQL 17 and MariaDB 10.11 stay as they are until you upgrade them yourself. If a container is stopped, the script only starts it and does not rewrite the compose.
Cautions
- A major upgrade takes the sites depending on that database offline for a while and needs roughly three times the data size in free disk space.
- The end-of-support table (
catalog_eol) and suggestions list (CATALOG_CHECKED, dated 2026-11-08) are updated by hand. They only provide suggestions and warnings, not restrictions. - Projects with an old Dockerfile (version written into the file) cannot be changed from the server; regenerate the files in Menu 3 and commit them.
Upgrade
Replace hideploy.sh and README.md on GitHub and tag v1.9.0. On the server:
sudo hideploy updateThen hideploy --version should show 1.9.0.
v1.8.0
Release Notes — v1.8.0
PostgreSQL Support & Brotli Compression
This release brings two additions: PostgreSQL support alongside MariaDB, selectable per project, and optional Brotli compression for Nginx. hideploy.sh and README.md are updated.
PostgreSQL alongside MariaDB
You can now choose the database engine per project.
- Installation:
Menu 2→7. If a project selects PostgreSQL and it is not installed, the script offers to install it. - Choosing the engine: The deploy wizard and "Add a database" ask whether to use MariaDB or PostgreSQL. The default for Laravel is MariaDB and for Next.js is PostgreSQL.
- Environment files: Laravel gets
DB_CONNECTION=pgsqlon port 5432; Next.js getsDATABASE_URL=postgresql://.... - Isolation: Each project has its own database and user, and a project's user cannot connect to another project's database.
- Full support: Import, restore (REPLACE and ADD modes), backup, project deletion, and encrypted nightly backups work for both engines. Projects with different engines that share a name keep their files separate (
db-pg-<name>). - Restore safety: A MySQL dump imported into PostgreSQL (or the reverse) is rejected with a clear message. PostgreSQL imports either complete fully or change nothing.
- Existing projects stay on MariaDB with no changes.
- Laravel Dockerfile: The
pdo_pgsqlextension is included in the new template. Existing Laravel projects that want PostgreSQL need to regenerate and push their Dockerfile (Menu 3); the script warns you about this.
Brotli Compression
Brotli is available from Menu 2 → 8.
- Building the image: The script compiles an image from official nginx plus the
ngx_brotlimodules on your server, which takes 2–5 minutes while sites keep running. You can also point it at your own image, such asnginx-brotli:latest. - Safe and reversible: Before switching, the full nginx config is tested with the new image in a temporary container. If the container fails to start or nginx rejects the config, everything reverts automatically. Disabling Brotli is equally reversible.
- Next.js: If the app gzips on its own, Brotli is never applied. For this reason, vhosts are set up so nginx handles compression, with gzip kept for older browsers.
- Menu options: Test on a site (showing actual size without compression, with gzip, and with Brotli), rebuild with the latest versions, and adjust the compression level.
On a real sample, Brotli came out about 7.6% smaller than gzip. On minified JS and CSS the gain is usually larger, around 10–25%. It is a useful and noticeable improvement, especially on mobile, but not magic.
What Has Not Been Tested Yet
The development sandbox has no Docker, so two steps will run for the first time on your server:
- The actual Docker image build and startup of the
postgres:17-bookwormcontainer. - Fetching
ngx_brotlifrom GitHub and compiling it inside Docker.
Everything else was tested with real tools: real PostgreSQL 16 and MariaDB 10.11, and real nginx with Brotli modules compiled locally. All tests pass (around 360 in total), including 54 PostgreSQL tests and 27 MariaDB regression tests. A long-hidden bug was also found and fixed: the safety-backup filename could overwrite the file being restored before the restore finished.
Suggested First Run
Start with a test project. The order is: 2 → 7 (install PostgreSQL), create a new project with PostgreSQL, then 2 → 8 (Brotli), and finally "Test it on a site". If you see an error, please share the message.
Upgrade
Replace hideploy.sh and README.md on GitHub and tag v1.8.0. On the server:
sudo hideploy updateThen hideploy --version should show 1.8.0.
v1.7.0
Release Notes — v1.7.0
Notifications: Email & Telegram
Version 1.7.0 adds a notification system that alerts you about deploys, failures, and server problems over email and Telegram. hideploy.sh and README.md are updated. All 222 automated tests (with fake Telegram and SMTP servers) pass, but this has not been run on a real server yet, since the sandbox has no real Docker or Telegram bot.
Bug Fix in 1.6.0 (Email)
In the previously released version, the Mail domains (show DNS, check DNS, remove domain) and Mailboxes (change password, remove mailbox) menus crashed the entire script with an unbound variable error caused by variable name collisions. Earlier tests did not run those menus with the mail server installed, so they missed it. This is now fixed and has a dedicated test showing the old code failed in all 4 cases while the new code does not. If you are running 1.6.0, update to 1.7.0.
New Menu: 10) Notifications
Two channels, which can be enabled together:
Email
Sent through your own mail server. The script creates a dedicated mailbox, notifications@<your-domain>, with a random password. Recipients can be any address.
Telegram
Create a bot via BotFather and provide the token, send a message to the bot, and the script finds the chat automatically. Multiple chats or groups are supported. A proxy option is available if Telegram is blocked from your server.
Events (each toggled independently)
- Successful and failed deploys, both from the HiDeploy menu and from GitLab pipelines. Messages include the commit, author, duration, and pipeline/job links.
- Rollbacks, backup results, SSL renewal failures, and certificates nearing expiry.
- Container stops for projects or shared services (nginx, MariaDB, Redis, mail server, Docker itself), disk filling up, and reboot required.
Anti-spam behavior
- Each problem is announced once, a reminder follows if it persists for 24 hours, and a "resolved" message is sent when it clears.
- A container must be down for two consecutive checks (5 minutes apart), so normal restarts during deploys do not raise alerts.
- Simultaneous issues are combined into a single message.
- If a channel is temporarily unavailable, retries continue for up to an hour, and only for recipients who did not receive the message.
- Settings let you change the server name, disk and certificate thresholds, and mute test projects.
Important Note About Pipelines
Pipelines run as the gitlab-runner user and must not see the Telegram token or mailbox password. So the pipeline only writes a small event file to a shared directory, and a root-side job (every minute) sends it. These files are never executed — only a fixed set of fields is read and cleaned up.
For existing projects: you need the new .gitlab-ci.yml. In 10 → 8, the script lists old projects, generates the new file, and prints the copy and push commands. Only .gitlab-ci.yml changes. Deploys from the HiDeploy menu send notifications without this step.
Three Things to Know
- Email alone is not enough. If the mail server itself breaks, the alert about that failure will not arrive by email. Enabling Telegram alongside it is recommended.
- The notification mailbox password is necessarily stored in plain text in
notify.env(root-only access, included in encrypted backups). If notification emails land in spam, mark them as "not spam". - The Telegram token never appears on the command line — it is only inside the
curlinput and is not visible inps(tested).
Upgrade
Replace hideploy.sh and README.md on GitHub and tag v1.7.0. On the server:
sudo hideploy updateThen hideploy --version should show 1.7.0. If you are on 1.6.0, this update is strongly recommended because of the email menu fix.
v1.6.0
Release Notes — v1.6.0
Shared Mail Server with Per-Project Integration
hideploy.sh is bumped to 1.6.0 and README.md is updated. A new 9) Email menu adds a shared mail server for all domains, much like the existing nginx and MariaDB services.
What's New
Email menu
Shared mail server
A single docker-mailserver (Postfix, Dovecot, and Rspamd) serving all domains. Installation checks that outbound port 25 is open, obtains an SSL certificate, opens the required ports in UFW, and displays the server's own DNS records.
Domains
Any domain can be added — it does not need to be a project. A DKIM key is generated and ready-to-copy MX, SPF, DKIM, and DMARC records are shown. A Check DNS option compares the real internet response against the expected value.
Mailboxes and aliases
Create info@, noreply@, and so on. Passwords are stored only as hashes and never appear on the command line.
Webmail (Roundcube)
Served on a separate address over HTTPS, with Basic Auth and an optional IP allowlist. Disabled by default like phpMyAdmin: Start enables it and Stop shuts the whole domain down. You can view incoming mail and send manually.
Deliverability check
Checks ports, PTR, blacklists, and DNS for all domains. A Send test email option sends from your own server and shows the delivery log.
Per-project integration (Laravel and Next.js)
Inside each project's menu, Email for this project lets you enable the domain, create a mailbox, and connect the project to a mailbox in one step. The script writes MAIL_* (Laravel) or SMTP_* and SMTP_URL (Next.js) into .env. The project reaches the mail server over the Docker network, so no external service is needed for sending.
Integration with the rest of the script
- A new status row in the main menu.
- Encrypted nightly backups include accounts and DKIM keys (message contents are optional and can be disabled).
- Automatic SSL renewal also reloads the mail server.
- Firewall rules are added for mail ports.
- Security check recognizes mail ports as "expected".
The code and README contain only generic examples such as example.com and mail.example.com — no personal domains.
What the Script Cannot Do
- PTR (Reverse DNS): Only your hosting provider can point the IP back to
mail.example.com. Without it, Gmail and Outlook usually send mail to spam. - IP reputation: Reaching the inbox on a fresh IP is not guaranteed. Low-volume receiving and sending (verification emails, password resets) usually works well, but bulk sending does not.
- AAAA record: Create only an A record for the mail host. Docker does not pass the real IPv6 address of senders to the mail server.
- RAM: Roughly 600–900 MB. The script warns if the server has less than about 1.8 GB of RAM.
Upgrade
Replace hideploy.sh and README.md on GitHub and tag v1.6.0. On the server:
sudo hideploy updateThen hideploy --version should show 1.6.0.
Notes
- Make sure outbound port 25 is open with your provider before installing; many hosts block it by default.
- Set up the DNS records shown by the script (MX, SPF, DKIM, DMARC) before expecting reliable delivery.
- Request the PTR record from your hosting provider — it is the single biggest factor in avoiding spam folders.
v1.5.0
Release Notes — v1.5.0
Security Menu: Firewall, fail2ban, Auto-Updates & SSH Hardening
hideploy.sh is bumped to 1.5.0 and README.md is updated. The new logic was tested in a simulated environment (with fake ufw, sshd, and fail2ban), but has not been run on a real server. Try it once on a test server — especially the firewall and SSH parts — and keep your hosting panel console open.
What's New
8) Security menu
A new section with: status check, firewall, fail2ban, automatic updates, SSH hardening, and file permission fixes.
Status table additions
The table at the top of the main menu gains four new rows (firewall, fail2ban, auto-updates, SSH login). If the server needs a reboot, a fifth row appears.
Full check page
Shows every security item together and lists the required actions at the end. Also available from the command line via sudo hideploy security-check.
Firewall
- Detects the real SSH port several ways, including the port of your current connection.
- Displays the rules and only enables after confirmation.
- After enabling, you must log in from a second window and type
yes. If you typeno, wait about 2 minutes, or your connection drops, the firewall turns itself off. This timer runs via systemd and survives closing the terminal.
fail2ban
Defaults to 5 failed attempts in 10 minutes and a one-hour ban. Your current IP is automatically allowlisted, and bans can be lifted.
Automatic updates
Security patches only. Automatic reboot is off by default and can be enabled from the menu with a custom time.
SSH key-only login
- Only runs when a key is present on the server and you type
TESTED. - Before applying, it backs up the config, runs
sshd -t, and verifies the actual effect withsshd -T. - After applying, you must confirm once more from a new window — otherwise the previous settings are restored automatically.
- An Undo option is available in the same menu.
Design Decisions
- Password root login is disabled, but root with a key still works — so anyone who logs in only as root is not locked out.
- Ports published by Docker (e.g. 80 and 443) bypass the firewall. The report labels these ports separately.
- Option 7 in the Prepare Server menu now runs this protected firewall.
- The main menu's "suggested next step" now also points to the firewall, fail2ban, and automatic updates after backups.
- README gains the new section, new command, and file paths, and the Roadmap item is checked off.
Bug Fixed During Testing
While testing without a real sshd, a bug was found: if sshd -T could not run, SSH hardening incorrectly reported "password login is disabled". This is fixed — it now shows "unknown" in that case and applies no changes.
Upgrade
Replace hideploy.sh and README.md on GitHub and tag v1.5.0. On the server:
sudo hideploy updateThen hideploy --version should show 1.5.0.
Testing Status
Tested only in a simulated environment with fake ufw, sshd, and fail2ban — not on a real server. Before enabling the firewall or SSH hardening, keep the hosting panel console open as a fallback and test on a disposable server first. If you hit an error, share the message.
v1.4.0
Release Notes — v1.4.0
Per-Project Settings & Shared Redis
This release adds a Project settings page for both Laravel and Next.js projects, plus a shared Redis service that projects can use for cache, sessions, and queues.
Path: 5) Manage Projects → project → Project settings (available for both Laravel and Next.js)
What's New
View project settings
See the project type, domains, memory, database, Redis, and upload limit on a single page.
Change memory
The container restarts with the new limit. If the total memory across all projects exceeds 80% of server RAM, you get a warning.
Add a domain (e.g. www)
It redirects permanently to the primary domain, and the SSL certificate is extended automatically. Create its DNS record first.
Remove an extra domain
Detach a secondary domain from the project.
Change the primary domain
The project directory, nginx config, and SSL are moved to the new name. Afterwards you must commit the new .gitlab-ci.yml (it contains the directory path). A ready-made copy is generated at /root/hideploy-templates/<new-domain> along with the scp command to fetch it.
Upload size
Configures both nginx and PHP (for new files).
Shared Redis
Menu 2 → 6 installs a password-protected Redis instance, available only inside the Docker network and persisted to disk. Each project can then use it:
- Laravel for cache, session, and queue (with a separate prefix per project)
- Next.js via
REDIS_URL
A Redis row has also been added to the status table.
Upgrade
Replace hideploy.sh and README.md on GitHub and tag v1.4.0. On the server:
sudo hideploy updateThen hideploy --version should show 1.4.0.
Notes
- Changing the primary domain requires committing the regenerated
.gitlab-ci.yml, since the pipeline references the project directory path. - Create the DNS record for any new domain before adding it, so the automatic SSL extension can succeed.
- The shared Redis instance is bound to the Docker network only and is not exposed externally.
v1.3.0
Release Notes — v1.3.0
Next.js Deployment & Nginx Performance Tuning
This release adds support for deploying Next.js projects and introduces an interactive performance tuning section for Nginx, MariaDB, and PHP-FPM. hideploy.sh is bumped to 1.3.0 and README.md is updated.
Testing status: Tests were simulated. A real Docker build for Next.js and a real GitLab pipeline have not been run yet — try it on a low-importance Next.js project first.
Next.js
- Project type selection: Menu 4 now asks for the project type (Laravel or Next.js). Menu 3 generates the Next.js-specific files.
- Package manager: pnpm is the default (with build cache). If the project has a
package-lock.json, the wizard detects it and guides migration viapnpm import. npm and yarn are also supported. - Containerized runtime: Each project runs one container serving the standalone output. Code lives inside the image, unlike Laravel which stays on disk.
- Safer deploys: A new image is built while the current version keeps serving. If the build fails, the previous version stays online (verified in simulated testing).
- Project requirements:
output: 'standalone'innext.configand a committed lock file. The wizard checks both and reports what to fix. - Environment variables:
.envstays on the server and is read by the container at startup.NEXT_PUBLIC_*variables are baked into the code at build time, so changing them requires a redeploy. Write$as$$. - Optional database:
DATABASE_URLandDB_*variables are written. Backup, restore, SSL, rollback, and disk cleanup all work the same for Next.js. - RAM: Runtime needs roughly 256–512 MB, but builds need about 1 GB (enable swap on low-memory servers).
Performance Tuning (main menu, option 7)
Nothing is applied automatically. Until you apply it, nginx and existing containers stay exactly as before. Verified that nginx output for Laravel sites without these settings is identical to the previous version.
- Server scan: Reads CPU cores, RAM, swap, disk type, and project memory, then suggests a value for each setting. Accept with Enter or enter a custom number.
- Nginx tuning: Compression level, keep-alive, file-info caching, browser caching for Laravel static files, and nginx caching for
/_next/static/in Next.js. Tested with real nginx and a test server: a static file was MISS on first request and HIT on the second. When the container was down it was still served from cache, and pages got the maintenance page with a 503. nginx tests the config before applying and rolls back if it fails; option 6 reverts everything. - MariaDB tuning: Memory, connection count, and
skip-name-resolve— the latter is the prime suspect for the ~5 second delay. The database restarts for 10–30 seconds, so the script asks for confirmation first and restores the previous setting if it does not come back healthy. - PHP-FPM tuning for Laravel: Dynamic mode keeps workers warm so the first request after idle is not slow.
- Slowdown diagnosis: Measures DNS, connect, time-to-first-byte, and database connection per site, and reports whether the problem is cold start, slow database, slow code, or DNS/IPv6/network.
Root-causing the 5-second delay
After one minute idle, run option 5 and look at the result, then apply option 3 or option 4 based on it. Share the option 5 output so we can confirm.
Upgrade
Replace hideploy.sh and README.md on GitHub and tag v1.3.0. On the server:
sudo hideploy updateThen hideploy --version should show 1.3.0.
Testing Status
Tests were simulated. A real Docker build for Next.js and a real GitLab pipeline have not been run yet — try it on a low-importance Next.js project first. If you hit an error, share the message.
1.2.0
Release Notes — v1.2.0
Rollback & Disk Cleanup
This release adds rollback to previous releases and disk cleanup, and bumps hideploy.sh to 1.2.0. README.md has been updated as well. The new logic was tested in a sandbox with fake docker and git. It has not been verified on a real server yet, so deploy to a low-importance project first.
1) Maintenance page & rollback
Maintenance mode on every deploy (automatic)
Before the code is swapped, the site enters Laravel maintenance mode and visitors see a "We'll be back soon" page instead of an error, refreshing itself every 15 seconds. After a successful deploy, the site comes back automatically.
If a deploy fails, the site is intentionally left in maintenance mode, because half-updated code can break pages or data. The log message tells you what to do.
nginx page
While the container restarts, nginx itself serves the same page. The file is hideploy-maintenance.html and you can edit it (it is never overwritten).
Deploy history
Every deploy (pipeline or manual) writes one line to .deploy.history: time, version, result (ok, failed, rollback), and commit message.
Rollback
Project menu → 13) Deployments → Roll back. It lists previous healthy versions, offers a database backup first, then reverts the code, rebuilds, and brings the site back online. All of the following worked in the fake test: rolling back from version 3 to 2, the database migration warning, and coming back online.
Two important notes: only the code is rolled back, not the database. If the bad release added a table or column, the script warns you. And the rollback is temporary: the next push deploys the newest code again. To make it permanent,
git revertthe bad commit and push.
A maintenance-mode toggle (manual on/off) is available in the same menu.
2) Disk cleanup
New "Disk space" row in the table at the top of the menu: green below 80%, yellow from 80%, red from 90% — and in that state, cleanup is suggested as the next step.
Menu path: 5) Manage Projects → 4) Disk usage and cleanup.
Safe cleanup: orphaned Docker images, old build cache, system logs above 200 MB, package caches, and Laravel logs older than 14 days. It does not touch volumes (databases), running containers, project code, or .env.
Deep cleanup:
- All images without containers (the next deploy or backup will be a bit slower).
- Find and clear very large log files.
- Delete manual backups older than 30 days.
Automatic weekly safe cleanup (Sundays at 04:10) can be turned on or off.
Every successful deploy also removes the orphaned images it creates, so they never accumulate in the first place.
Upgrade
Replace hideploy.sh and README.md on GitHub and tag v1.2.0. On the server:
sudo hideploy updateThen hideploy --version should show 1.2.0.
Testing Status
The new logic was tested in a sandbox with fake docker and git. It has not been tested on a real server — deploy to a low-importance project first. If you hit an error, share the message.
v1.1.2
Release Notes — v1.1.2
Fixed Northwest Iran Endpoint
This patch corrects the endpoint saved in hideploy.sh. Option 3 now stores s3.ir-northwest1.arvanstorage.ir for "Northwest Iran (Standard)". Verified by creating the config in a sandbox. README.md contains no specific endpoints and was left unchanged.
Retirement warning now covers both old endpoints
The "being retired" warning is now shown for both legacy endpoints (ir-thr-at1 and ir-tbz-sh1), since both are being phased out. If anyone had already configured them, the backup status will display the warning and prompt them to select a new region.
Current preset endpoints
- Iran Central, Standard:
s3.ir-central1.arvanstorage.ir - Iran Central, HiOps (SSD):
hot.ir-central1.arvanstorage.ir - Northwest Iran, Standard:
s3.ir-northwest1.arvanstorage.ir - Western Europe, Standard:
s3.eu-west1.arvanstorage.ir
Upgrade
Replace hideploy.sh on GitHub and tag v1.1.2. On the server:
sudo hideploy updateThen hideploy --version should show 1.1.2.
Testing Status
The corrected endpoint was confirmed by generating the config in a sandbox. A real connection to an ArvanCloud bucket has not been verified yet — run option 6 manually the first time and share any error message.
v1.1.1
Release Notes — v1.1.1
Updated ArvanCloud S3 Endpoints
This patch updates the ArvanCloud S3 endpoint presets in hideploy.sh to the current list and brings README.md in line. Syntax checks and ShellCheck pass, and all four endpoint options save correctly to the config. A real connection to an ArvanCloud bucket still has not been tested.
New destination menu (option 4 in the Backups menu)
- Iran Central, Standard:
s3.ir-central1.arvanstorage.ir - Iran Central, HiOps (SSD):
hot.ir-central1.arvanstorage.ir - Northwest Iran, Standard:
s3.ir-tbz-sh1.arvanstorage.ir - Western Europe, Standard:
s3.eu-west1.arvanstorage.ir - Other S3 service: custom endpoint
Removed endpoint
The Tehran endpoint (ir-thr-at1) has been removed from the menu. If anyone had already configured it, the backup status will show a warning that the endpoint is being retired and a new region should be selected. Since this version has not been used by anyone yet, the warning is included purely as a precaution.
Upgrade
Replace hideploy.sh and README.md on GitHub and tag v1.1.1. On the server:
sudo hideploy updateThen hideploy --version should show 1.1.1.
Testing Status
Syntax and ShellCheck pass, and all four endpoint options persist correctly to the config. A real connection to an ArvanCloud bucket has not been verified yet — run option 6 manually the first time and share any error message.