Skip to content

Commit 75f5598

Browse files
committed
also add security headers to nginx responses
thanks to @J0WI (#52)
1 parent b74e721 commit 75f5598

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sites-available/matomo.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ server {
1414

1515
## uncomment if you want to enable HSTS with 6 months cache
1616
## ATTENTION: Be sure you know the implications of this change (you won't be able to disable HTTPS anymore)
17-
#add_header Strict-Transport-Security max-age=15768000;
17+
#add_header Strict-Transport-Security max-age=15768000 always;
1818

1919
## replace with your SSL certificate
2020
ssl_certificate /etc/letsencrypt/live/matomo.example.com/fullchain.pem;
2121
ssl_certificate_key /etc/letsencrypt/live/matomo.example.com/privkey.pem;
2222

2323
include ssl.conf; # if you want to support older browsers, please read through this file
2424

25-
add_header Referrer-Policy origin; # make sure outgoing links don't show the URL to the Matomo instance
25+
add_header Referrer-Policy origin always; # make sure outgoing links don't show the URL to the Matomo instance
2626

2727
root /var/www/matomo/; # replace with path to your matomo instance
2828

0 commit comments

Comments
 (0)