Skip to content
This repository has been archived by the owner on Feb 28, 2018. It is now read-only.

Improve security on nginx #267

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions contrib/nginx
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
server {
listen 443 ssl;
server_name jarbas.serenatadeamor.org;
ssl_certificate /etc/letsencrypt/live/jarbas.serenatadeamor.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/jarbas.serenatadeamor.org/privkey.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
access_log on;
listen 443 ssl;
server_name jarbas.serenatadeamor.org;
ssl_certificate /etc/letsencrypt/live/jarbas.serenatadeamor.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/jarbas.serenatadeamor.org/privkey.pem;
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
access_log on;
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains; preload";
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";


location /.well-known/ {
alias /opt/jarbas/staticfiles/.well-known/;
Expand All @@ -30,6 +35,7 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
add_header P3P 'CP="ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV"';
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains; preload";
}
}

Expand Down