generated from nhcarrigan/template
refactor: restructure nginx config into per-app files #1
Reference in New Issue
Block a user
Delete Branch "feat/restructure"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
push.shscript to deploy configs to prod viasudo rsync(with--deletefor exact mirroring)conf.d/server.conf(1,682 lines, 96 server blocks) into 28 per-app files undersites-available/, with corresponding symlinks insites-enabled/nginx.confsettings (log_formatdirectives,server_names_hash_bucket_size) into dedicatedconf.d/logging.confandconf.d/tuning.conffiles, leavingnginx.confas close to stock as possibleTest plan
sudo nginx -tpasses on prod after the sites-available restructure✨ This PR was created with help from Hikari~ 🌸
Adds test 13 to test.sh to verify that server blocks within each sites-available file are sorted alphabetically by server_name (LC_ALL=C; regex and wildcard entries excluded). Fixes aria.conf and mommy.conf to conform: hyphenated names sort before the bare domain in C locale ('-' < '.'), so trans-bot now precedes trans, and mommy-slack now precedes mommy.