refactor: consolidate pure-redirect server blocks into conf.d/redirects.conf
Test nginx configuration / Static Analysis (push) Failing after 7s
Test nginx configuration / nginx Syntax Check (push) Failing after 19s
Security Scan and Upload / Security & DefectDojo Upload (push) Failing after 3m27s

Moves 12 redirect-only server blocks out of their mixed host files
(content, aria, hikari, celestine, support, scheduling, portfolio) and
into a dedicated redirects.conf. Deletes the now-empty scheduling.conf
and its sites-enabled symlink.
This commit is contained in:
2026-04-17 16:38:12 -07:00
committed by Naomi Carrigan
parent ce7c3341b7
commit 49fd7812dd
9 changed files with 156 additions and 143 deletions
+1 -15
View File
@@ -1,5 +1,4 @@
# Personal portfolio and vanity domains (naomi.lgbt, naomi.party, nhcarrigan.com, nhcarrigan.link, resume)
# plus a wildcard catch-all that redirects *.naomi.lgbt → *.nhcarrigan.com.
# Personal portfolio and vanity domains (naomi.lgbt, naomi.party, nhcarrigan.com, nhcarrigan.link, resume).
server {
listen 443 ssl;
server_name naomi.lgbt;
@@ -160,16 +159,3 @@ server {
include /etc/nginx/snippets/deny-dotfiles.conf;
}
# Wildcard catch-all — must remain last so specific subdomains take priority
server {
listen 443 ssl;
server_name ~^(?<subdomain>.+)\.naomi\.lgbt$;
ssl_certificate /etc/letsencrypt/live/*.naomi.lgbt/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/*.naomi.lgbt/privkey.pem;
location / {
return 301 https://$subdomain.nhcarrigan.com$request_uri;
}
include /etc/nginx/snippets/deny-dotfiles.conf;
}