From d7ccaa19467cd4281989ac2f59ee2f20acbdc4e1 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Fri, 1 Apr 2016 16:54:59 +0200 Subject: Set a CSP on the webmail, website/wiki and list manager. --- roles/git/files/etc/nginx/sites-available/git | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'roles/git/files') diff --git a/roles/git/files/etc/nginx/sites-available/git b/roles/git/files/etc/nginx/sites-available/git index fbbbb48..ca5555e 100644 --- a/roles/git/files/etc/nginx/sites-available/git +++ b/roles/git/files/etc/nginx/sites-available/git @@ -5,7 +5,6 @@ server { server_name git.fripost.org; include snippets/acme-challenge.conf; - include snippets/headers.conf; access_log /var/log/nginx/git.access.log; error_log /var/log/nginx/git.error.log info; @@ -23,13 +22,14 @@ server { server_name git.fripost.org; include snippets/ssl.conf; - include snippets/headers.conf; ssl_certificate /etc/nginx/ssl/git.fripost.org.pem; ssl_certificate_key /etc/nginx/ssl/git.fripost.org.key; access_log /var/log/nginx/git.access.log; error_log /var/log/nginx/git.error.log info; + include snippets/headers.conf; + location ^~ /static/ { alias /usr/share/cgit/; expires 30d; -- cgit v1.2.3