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.
15 lines
403 B
Plaintext
15 lines
403 B
Plaintext
# Data service proxy.
|
|
server {
|
|
listen 443 ssl;
|
|
server_name data.nhcarrigan.com;
|
|
ssl_certificate /etc/letsencrypt/live/data.nhcarrigan.com/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/data.nhcarrigan.com/privkey.pem;
|
|
|
|
location / {
|
|
proxy_set_header Host $host;
|
|
proxy_pass http://127.0.0.1:9999;
|
|
proxy_redirect off;
|
|
}
|
|
include /etc/nginx/snippets/deny-dotfiles.conf;
|
|
}
|