generated from nhcarrigan/template
49fd7812dd
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.
162 lines
3.6 KiB
Plaintext
162 lines
3.6 KiB
Plaintext
# Personal portfolio and vanity domains (naomi.lgbt, naomi.party, nhcarrigan.com, nhcarrigan.link, resume).
|
|
server {
|
|
listen 443 ssl;
|
|
server_name naomi.lgbt;
|
|
ssl_certificate /etc/letsencrypt/live/naomi.lgbt/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/naomi.lgbt/privkey.pem;
|
|
|
|
root /home/naomi/portfolio/site;
|
|
|
|
location / {
|
|
index index.html;
|
|
}
|
|
|
|
location /ads.txt {
|
|
add_header Content-Type text/plain;
|
|
return 200 "google.com, pub-3569924701890974, DIRECT, f08c47fec0942fa0";
|
|
}
|
|
|
|
location /games {
|
|
try_files /games.html =404;
|
|
}
|
|
|
|
location /koikatsu {
|
|
try_files /koikatsu.html =404;
|
|
}
|
|
include /etc/nginx/snippets/deny-dotfiles.conf;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name naomi.party;
|
|
ssl_certificate /etc/letsencrypt/live/naomi.party/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/naomi.party/privkey.pem;
|
|
|
|
root /home/naomi/bsky;
|
|
|
|
location / {
|
|
index index.html;
|
|
}
|
|
|
|
location /ads.txt {
|
|
add_header Content-Type text/plain;
|
|
return 200 "google.com, pub-3569924701890974, DIRECT, f08c47fec0942fa0";
|
|
}
|
|
include /etc/nginx/snippets/deny-dotfiles.conf;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name nhcarrigan.com;
|
|
ssl_certificate /etc/letsencrypt/live/nhcarrigan.com/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/nhcarrigan.com/privkey.pem;
|
|
|
|
root /home/naomi/portfolio/site;
|
|
|
|
location /ads.txt {
|
|
add_header Content-Type text/plain;
|
|
return 200 "google.com, pub-3569924701890974, DIRECT, f08c47fec0942fa0";
|
|
}
|
|
|
|
location / {
|
|
index index.html;
|
|
}
|
|
|
|
location /games {
|
|
try_files /games.html =404;
|
|
}
|
|
|
|
location /koikatsu {
|
|
try_files /koikatsu.html =404;
|
|
}
|
|
|
|
location /testimonials {
|
|
return 301 https://testimonials.nhcarrigan.com;
|
|
}
|
|
include /etc/nginx/snippets/deny-dotfiles.conf;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name nhcarrigan.link;
|
|
ssl_certificate /etc/letsencrypt/live/nhcarrigan.link/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/nhcarrigan.link/privkey.pem;
|
|
|
|
root /home/naomi/link-redirector;
|
|
|
|
location / {
|
|
index index.html;
|
|
}
|
|
|
|
location /ads.txt {
|
|
add_header Content-Type text/plain;
|
|
return 200 "google.com, pub-3569924701890974, DIRECT, f08c47fec0942fa0";
|
|
}
|
|
include /etc/nginx/snippets/deny-dotfiles.conf;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name resume.nhcarrigan.com;
|
|
ssl_certificate /etc/letsencrypt/live/resume.nhcarrigan.com/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/resume.nhcarrigan.com/privkey.pem;
|
|
|
|
root /home/naomi/resume/site;
|
|
|
|
location /resume.yaml {
|
|
default_type text/plain;
|
|
add_header Content-Type "text/plain; charset=utf-8";
|
|
}
|
|
|
|
location / {
|
|
index index.html;
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
include /etc/nginx/snippets/deny-dotfiles.conf;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name www.naomi.lgbt;
|
|
ssl_certificate /etc/letsencrypt/live/www.naomi.lgbt/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/www.naomi.lgbt/privkey.pem;
|
|
|
|
root /home/naomi/portfolio/site;
|
|
|
|
location / {
|
|
index index.html;
|
|
}
|
|
|
|
location /games {
|
|
try_files /games.html =404;
|
|
}
|
|
|
|
location /koikatsu {
|
|
try_files /koikatsu.html =404;
|
|
}
|
|
include /etc/nginx/snippets/deny-dotfiles.conf;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name www.nhcarrigan.com;
|
|
ssl_certificate /etc/letsencrypt/live/www.nhcarrigan.com/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/www.nhcarrigan.com/privkey.pem;
|
|
|
|
root /home/naomi/portfolio/site;
|
|
|
|
location / {
|
|
index index.html;
|
|
}
|
|
|
|
location /games {
|
|
try_files /games.html =404;
|
|
}
|
|
|
|
location /koikatsu {
|
|
try_files /koikatsu.html =404;
|
|
}
|
|
include /etc/nginx/snippets/deny-dotfiles.conf;
|
|
}
|
|
|