generated from nhcarrigan/template
fc252e28e2
Adds a deny-dotfiles snippet that returns 403 for any URI matching /\. (e.g. .gitconfig, .env, .git/) and includes it in every server block.
71 lines
1.8 KiB
Plaintext
71 lines
1.8 KiB
Plaintext
# Documentation and informational sites: contact, docs, manual, sitemap, socials.
|
|
server {
|
|
listen 443 ssl;
|
|
server_name contact.nhcarrigan.com;
|
|
ssl_certificate /etc/letsencrypt/live/contact.nhcarrigan.com/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/contact.nhcarrigan.com/privkey.pem;
|
|
|
|
root /home/naomi/socials;
|
|
|
|
location / {
|
|
index index.html;
|
|
}
|
|
include /etc/nginx/snippets/deny-dotfiles.conf;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name docs.nhcarrigan.com;
|
|
ssl_certificate /etc/letsencrypt/live/docs.nhcarrigan.com/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/docs.nhcarrigan.com/privkey.pem;
|
|
|
|
root /home/naomi/docs/dist;
|
|
|
|
location / {
|
|
index index.html;
|
|
}
|
|
include /etc/nginx/snippets/deny-dotfiles.conf;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name manual.nhcarrigan.com;
|
|
ssl_certificate /etc/letsencrypt/live/manual.nhcarrigan.com/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/manual.nhcarrigan.com/privkey.pem;
|
|
|
|
root /home/naomi/manual;
|
|
|
|
location / {
|
|
index index.html;
|
|
}
|
|
include /etc/nginx/snippets/deny-dotfiles.conf;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name sitemap.nhcarrigan.com;
|
|
ssl_certificate /etc/letsencrypt/live/sitemap.nhcarrigan.com/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/sitemap.nhcarrigan.com/privkey.pem;
|
|
|
|
root /home/naomi/sitemap;
|
|
|
|
location / {
|
|
index index.html;
|
|
}
|
|
include /etc/nginx/snippets/deny-dotfiles.conf;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name socials.nhcarrigan.com;
|
|
ssl_certificate /etc/letsencrypt/live/socials.nhcarrigan.com/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/socials.nhcarrigan.com/privkey.pem;
|
|
|
|
root /home/naomi/socials;
|
|
|
|
location / {
|
|
index index.html;
|
|
}
|
|
include /etc/nginx/snippets/deny-dotfiles.conf;
|
|
}
|