Skip to content

Commit ccad400

Browse files
authored
Merge pull request #73 from imagewize/generic-user-and-site
Generic User And Site
2 parents 769ea3e + d688334 commit ccad400

File tree

16 files changed

+207
-135
lines changed

16 files changed

+207
-135
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [2.3.1] - 2026-01-01
11+
12+
### Changed
13+
14+
- **Standardized placeholder domain across documentation** - Replaced `imagewize.com` with `example.com` for consistency in all generic examples and documentation:
15+
- Updated 13 files across scripts, documentation, and configuration examples
16+
- Affected files: PAGE-CREATION.md, MULTI-SITE-MIGRATION.md, CRON.md, PROJECT-SETUP.md, nginx/README.md, nginx/redirects/README.md, scripts/README.md, monitoring scripts, and more
17+
- Preserved historical references to `imagewize.com` in CHANGELOG.md to maintain accurate project history
18+
- Preserved real-world production data and case studies in security documentation (FAIL2BAN.md, security/README.md, MANUAL-IP-BLOCKING.md) which contain actual attack statistics and production examples
19+
- Enhanced documentation clarity by using industry-standard `example.com` placeholder domain (RFC 2606)
20+
1021
## [2.3.0] - 2026-01-01
1122

1223
### Added

nginx/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ SEO-friendly redirect templates for URL migrations, permalink changes, and canon
197197
- `wordpress-permalinks.conf.j2` - Common permalink migration patterns
198198

199199
**Real-world example:**
200-
- `imagewize.com/seo-redirects.conf.j2` - Production redirect patterns
200+
- `example.com/seo-redirects.conf.j2` - Production redirect patterns
201201

202202
### Configuration Examples
203203

nginx/redirects/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This directory contains example nginx redirect configurations that can be used i
1212
redirects/
1313
├── README.md # This file
1414
└── examples/
15-
├── imagewize.com/
15+
├── example.com/
1616
│ └── seo-redirects.conf.j2 # SEO redirect examples
1717
└── generic/
1818
├── wordpress-permalinks.conf.j2 # Common WordPress redirects
@@ -35,8 +35,8 @@ trellis/
3535
└── nginx-includes/
3636
├── all/ # Global includes (all sites)
3737
│ └── assets-expiry.conf.j2 # Browser caching rules
38-
└── imagewize.com/ # Site-specific includes
39-
└── seo-redirects.conf.j2 # SEO redirects (imagewize.com only)
38+
└── example.com/ # Site-specific includes
39+
└── seo-redirects.conf.j2 # SEO redirects (example.com only)
4040
```
4141

4242
### Deployment Location
@@ -47,8 +47,8 @@ Templates are deployed to `/etc/nginx/includes.d/` on the server:
4747
/etc/nginx/includes.d/
4848
├── all/
4949
│ └── assets-expiry.conf # Rendered from all/assets-expiry.conf.j2
50-
└── imagewize.com/
51-
└── seo-redirects.conf # Rendered from imagewize.com/seo-redirects.conf.j2
50+
└── example.com/
51+
└── seo-redirects.conf # Rendered from example.com/seo-redirects.conf.j2
5252
```
5353

5454
## Using the Examples
@@ -57,7 +57,7 @@ Templates are deployed to `/etc/nginx/includes.d/` on the server:
5757

5858
```bash
5959
# Copy site-specific redirect template
60-
cp ~/code/trellis-tools/redirects/examples/imagewize.com/seo-redirects.conf.j2 \
60+
cp ~/code/trellis-tools/redirects/examples/example.com/seo-redirects.conf.j2 \
6161
~/code/yourproject.com/trellis/nginx-includes/yoursite.com/
6262

6363
# Or copy to global includes (applies to all sites)

scripts/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ Edit script to set theme paths:
213213

214214
```bash
215215
# Bedrock installation directories
216-
DEMO_DIR="$HOME/code/imagewize.com/demo/web/app/themes"
217-
SITE_DIR="$HOME/code/imagewize.com/site/web/app/themes"
216+
DEMO_DIR="$HOME/code/example.com/demo/web/app/themes"
217+
SITE_DIR="$HOME/code/example.com/site/web/app/themes"
218218
```
219219

220220
#### Example Changelog Output
@@ -278,7 +278,7 @@ Simple rsync wrapper for theme synchronization between Trellis and standalone re
278278
Edit script with your paths:
279279

280280
```bash
281-
SOURCE="$HOME/code/imagewize.com/demo/web/app/themes/elayne/"
281+
SOURCE="$HOME/code/example.com/demo/web/app/themes/elayne/"
282282
DESTINATION="$HOME/code/elayne/"
283283
```
284284

@@ -503,7 +503,7 @@ Real-time Nginx traffic analysis with intelligent bot filtering and comprehensiv
503503
./traffic-monitor.sh
504504

505505
# Specific log file and time window
506-
./traffic-monitor.sh /srv/www/demo.imagewize.com/logs/access.log 6
506+
./traffic-monitor.sh /srv/www/demo.example.com/logs/access.log 6
507507

508508
# Last 24 hours
509509
./traffic-monitor.sh /var/log/nginx/access.log 24

scripts/monitoring/security-monitor.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# ./security-monitor.sh [log_file] [hours] [alert_threshold]
77
#
88
# Examples:
9-
# ./security-monitor.sh # Default: imagewize.com, last 24h
10-
# ./security-monitor.sh /srv/www/demo.imagewize.com/logs/access.log 1 50 # Demo site, 1 hour, alert > 50
9+
# ./security-monitor.sh # Default: example.com, last 24h
10+
# ./security-monitor.sh /srv/www/demo.example.com/logs/access.log 1 50 # Demo site, 1 hour, alert > 50
1111
# ./security-monitor.sh /var/log/nginx/access.log 24 100 # Global logs, 24h, alert > 100
1212
#
1313

@@ -19,11 +19,11 @@ set -e
1919

2020
# Default log file - adjust to your site:
2121
# Per-site logs (Trellis default):
22-
# /srv/www/imagewize.com/logs/access.log
23-
# /srv/www/demo.imagewize.com/logs/access.log
22+
# /srv/www/example.com/logs/access.log
23+
# /srv/www/demo.example.com/logs/access.log
2424
# Global logs (if configured):
2525
# /var/log/nginx/access.log
26-
LOG_FILE="${1:-/srv/www/imagewize.com/logs/access.log}"
26+
LOG_FILE="${1:-/srv/www/example.com/logs/access.log}"
2727
HOURS="${2:-24}"
2828
ALERT_THRESHOLD="${3:-100}" # Alert if single IP exceeds this many requests
2929

scripts/monitoring/traffic-monitor.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# ./traffic-monitor.sh [log_file] [hours]
77
#
88
# Examples:
9-
# ./traffic-monitor.sh # Default: imagewize.com, last 24h
10-
# ./traffic-monitor.sh /srv/www/demo.imagewize.com/logs/access.log 6 # Demo site, last 6 hours
9+
# ./traffic-monitor.sh # Default: example.com, last 24h
10+
# ./traffic-monitor.sh /srv/www/demo.example.com/logs/access.log 6 # Demo site, last 6 hours
1111
# ./traffic-monitor.sh /var/log/nginx/access.log 24 # Global logs, last 24 hours
1212
#
1313

@@ -19,11 +19,11 @@ set -e
1919

2020
# Default log file - adjust to your site:
2121
# Per-site logs (Trellis default):
22-
# /srv/www/imagewize.com/logs/access.log
23-
# /srv/www/demo.imagewize.com/logs/access.log
22+
# /srv/www/example.com/logs/access.log
23+
# /srv/www/demo.example.com/logs/access.log
2424
# Global logs (if configured):
2525
# /var/log/nginx/access.log
26-
LOG_FILE="${1:-/srv/www/imagewize.com/logs/access.log}"
26+
LOG_FILE="${1:-/srv/www/example.com/logs/access.log}"
2727
HOURS="${2:-24}"
2828

2929
# Bot patterns to exclude from traffic analysis

scripts/rsync-theme.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ rsync -av --delete \
2323
--exclude 'vendor/' \
2424
--exclude '.git/' \
2525
--exclude '.github/' \
26-
~/code/imagewize.com/demo/web/app/themes/elayne/ \
26+
~/code/example.com/demo/web/app/themes/elayne/ \
2727
~/code/elayne/
2828

trellis/provision/CRON.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ This sets `DISABLE_WP_CRON` constant to `true` in WordPress configuration.
3737

3838
```bash
3939
# Example: /etc/cron.d/wordpress-imagewize_com
40-
#Ansible: imagewize.com WordPress cron
41-
*/15 * * * * web cd /srv/www/imagewize.com/current && wp cron event run --due-now > /dev/null 2>&1
40+
#Ansible: example.com WordPress cron
41+
*/15 * * * * web cd /srv/www/example.com/current && wp cron event run --due-now > /dev/null 2>&1
4242
```
4343

4444
**What this does:**
@@ -54,8 +54,8 @@ For **WordPress multisite** installations, the cron configuration is different t
5454

5555
```bash
5656
# Example: /etc/cron.d/wordpress-demo_imagewize_com
57-
#Ansible: demo.imagewize.com WordPress cron
58-
*/15 * * * * web cd /srv/www/demo.imagewize.com/current && (wp site list --field=url | xargs -n1 -I % wp --url=% cron event run --due-now) > /dev/null 2>&1
57+
#Ansible: demo.example.com WordPress cron
58+
*/15 * * * * web cd /srv/www/demo.example.com/current && (wp site list --field=url | xargs -n1 -I % wp --url=% cron event run --due-now) > /dev/null 2>&1
5959
```
6060

6161
**What this does:**
@@ -66,7 +66,7 @@ For **WordPress multisite** installations, the cron configuration is different t
6666
**Multisite cron log example:**
6767

6868
```
69-
2025-11-28T02:30:01 ubuntu CRON[93961]: (web) CMD (cd /srv/www/demo.imagewize.com/current && (wp site list --field=url | xargs -n1 -I % wp --url=% cron event run --due-now) > /dev/null 2>&1)
69+
2025-11-28T02:30:01 ubuntu CRON[93961]: (web) CMD (cd /srv/www/demo.example.com/current && (wp site list --field=url | xargs -n1 -I % wp --url=% cron event run --due-now) > /dev/null 2>&1)
7070
```
7171
7272
## Verification
@@ -112,9 +112,9 @@ sudo -u web bash -c "cd /srv/www/example.com/current && wp cron event run --due-
112112
**Example of successful cron execution in logs:**
113113

114114
```
115-
2025-11-28T02:15:01 ubuntu CRON[93164]: (web) CMD (cd /srv/www/imagewize.com/current && wp cron event run --due-now > /dev/null 2>&1)
116-
2025-11-28T02:30:01 ubuntu CRON[93960]: (web) CMD (cd /srv/www/imagewize.com/current && wp cron event run --due-now > /dev/null 2>&1)
117-
2025-11-28T02:45:01 ubuntu CRON[94288]: (web) CMD (cd /srv/www/imagewize.com/current && wp cron event run --due-now > /dev/null 2>&1)
115+
2025-11-28T02:15:01 ubuntu CRON[93164]: (web) CMD (cd /srv/www/example.com/current && wp cron event run --due-now > /dev/null 2>&1)
116+
2025-11-28T02:30:01 ubuntu CRON[93960]: (web) CMD (cd /srv/www/example.com/current && wp cron event run --due-now > /dev/null 2>&1)
117+
2025-11-28T02:45:01 ubuntu CRON[94288]: (web) CMD (cd /srv/www/example.com/current && wp cron event run --due-now > /dev/null 2>&1)
118118
```
119119

120120
If you see entries like these running every 15 minutes, your WordPress cron is working correctly.
@@ -123,7 +123,7 @@ If you see entries like these running every 15 minutes, your WordPress cron is w
123123

124124
```bash
125125
# Check only cron logs for a specific site
126-
sudo grep -i cron /var/log/syslog | grep "imagewize.com" | tail -20
126+
sudo grep -i cron /var/log/syslog | grep "example.com" | tail -20
127127

128128
# Check cron logs for all sites
129129
sudo grep -i cron /var/log/syslog | grep "(web) CMD" | tail -20

trellis/provision/PROJECT-SETUP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ If you're setting up an existing project on a new machine, copy the `.vault_pass
193193
cat /path/to/project/trellis/.vault_pass
194194

195195
# On your new machine
196-
cd /Users/j/code/imagewize.com/trellis
196+
cd /Users/j/code/example.com/trellis
197197
echo "PASTE_PASSWORD_HERE" > .vault_pass
198198
chmod 600 .vault_pass
199199
```

0 commit comments

Comments
 (0)