Private
Public Access
1
0
Commit Graph

12 Commits

Author SHA1 Message Date
constantprojects
0bef817f7b Add license key gate, migrate marketing site to separate repo
- install.sh: prompt for license key as first step, validate against
  makeyourown.website/api/validate before any system changes
- setup.sh: secondary key check (format-only if .license-key exists,
  server validation if missing)
- Remove website/ directory — marketing site, keyserver, and deploy
  scripts migrated to the websites repo (git.constantprojects.xyz/
  tankadmin/websites.git) for independent deployment
- Update CLAUDE.md, guide.md, .gitignore to reflect migration

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 12:50:24 -07:00
constantprojects
2c3b58eea7 Add --build to websitebox up, comprehensive guide.md polish
- websitebox up now includes --build flag to always rebuild images,
  fixing Docker cache serving stale containers after code updates
- setup.sh launch command updated to source ~/.bashrc first
- guide.md: added step roadmap table with time estimates
- guide.md: added time estimates to all step headers
- guide.md: updated Launch step to use websitebox shortcut with
  source ~/.bashrc, added command reference table
- guide.md: updated all troubleshooting commands to use websitebox
  shortcut instead of cd + docker compose
- guide.md: added 'websitebox: command not found' troubleshooting
- guide.md: updated setup wizard terminal example to match current
  colored output format
- guide.md: added container build step to launch explanation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 09:18:54 -07:00
constantprojects
3a6cf54d92 Make websitebox command smarter: auto-add -d and -f flags
- 'websitebox up' now automatically runs 'docker compose up -d'
- 'websitebox logs' now automatically runs 'docker compose logs -f'
- All other commands pass through unchanged
- Added 'source ~/.bashrc' instruction at end of installer so the
  command works immediately without logout/login
- Updated tips and setup summary to show simplified commands

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 09:09:01 -07:00
constantprojects
2685603fcd Add 'websitebox' shell command as shortcut for docker compose
Installs a shell function in .bashrc/.zshrc that auto-cds into the
project directory, so users can run 'websitebox up -d' from anywhere
instead of remembering to cd first. Shows usage examples in the
installer's closing output. Setup summary updated to use the shortcut.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 09:02:03 -07:00
constantprojects
d76c572af8 Fix stdin: use targeted /dev/tty redirects instead of exec
The exec < /dev/tty approach silently killed the script under set -e
if /dev/tty wasn't accessible. Replace with surgical redirects on
just the interactive reads and setup.sh invocation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 08:52:48 -07:00
constantprojects
dcbcf799c4 Fix stdin hijack when run via curl | bash
When piped through curl, stdin is the download stream, not the
terminal. This caused setup wizard prompts to read empty input
(the 'rogue enter' bug). Fix: reopen stdin from /dev/tty before
any interactive prompts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 08:50:39 -07:00
constantprojects
eca351057b Add colored output to install.sh, update all URLs to Gitea
Color system: green checkmarks for success, orange bold for info/hints,
cyan section headers, bold white title headers, yellow warnings, red
errors. Rolling progress preview lines shown in dim. UFW "Rules updated"
noise suppressed.

Updated all repository URLs from github.com/websitebox/websitebox to
git.constantprojects.xyz/tankadmin/websitebox across install.sh,
guide.md, and README.md.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 08:49:13 -07:00
constantprojects
9ec246cb65 Add rolling 4-line progress preview to install.sh
Long-running apt commands now show a live 4-line preview window that
overwrites in place using terminal escape codes. Users see what's
happening without the screen flooding with package manager output.
Preview auto-clears when each step completes.

Also fixes: duplicate else branch in Docker if/else block,
adds DEBIAN_FRONTEND=noninteractive and --force-confold to prevent
interactive dpkg prompts (sshd_config, etc).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 08:45:18 -07:00
constantprojects
06ecfe1034 Auto-keep existing config files during apt upgrade
Adds --force-confold to prevent interactive dpkg prompts (e.g.
sshd_config) that would block unattended installation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 08:41:35 -07:00
constantprojects
5973331f64 Add progress descriptions to install.sh for slow connections
Each major install step now shows what it does and how long to expect:
- System update: 2-10 min on fresh servers
- Security tools: under a minute
- Docker: 1-3 min (largest download)
- Clone: a few seconds

Updated guide.md terminal output to match.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 08:38:33 -07:00
constantprojects
b7dc25fbf2 Automate server hardening in install.sh, update guide accordingly
Move firewall (UFW), fail2ban, auto-updates, and Docker log rotation
from manual guide steps into install.sh automation. Update guide.md
to describe the automated process instead of manual commands.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 16:32:47 -07:00
constantprojects
a440026701 Initial commit: complete WebsiteBox project
Docker-based self-hosted WordPress deployment system with:
- Four-container stack (nginx, wordpress/php-fpm, mariadb, certbot)
- Automatic SSL via Let's Encrypt with self-signed fallback
- First-boot WordPress setup via WP-CLI (GeneratePress + child theme, plugins)
- Interactive setup wizard and one-line install script
- Backup, update, healthcheck, and SSL renewal scripts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:24:23 -07:00