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.
27 lines
714 B
Plaintext
27 lines
714 B
Plaintext
# Lynira.link domain (bare + www).
|
|
server {
|
|
listen 443 ssl;
|
|
server_name lynira.link;
|
|
ssl_certificate /etc/letsencrypt/live/lynira.link/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/lynira.link/privkey.pem;
|
|
|
|
location / {
|
|
proxy_set_header Host $host;
|
|
proxy_pass http://127.0.0.1:5044;
|
|
}
|
|
include /etc/nginx/snippets/deny-dotfiles.conf;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name www.lynira.link;
|
|
ssl_certificate /etc/letsencrypt/live/www.lynira.link/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/www.lynira.link/privkey.pem;
|
|
|
|
location / {
|
|
proxy_set_header Host $host;
|
|
proxy_pass http://127.0.0.1:5044;
|
|
}
|
|
include /etc/nginx/snippets/deny-dotfiles.conf;
|
|
}
|