Permalink
Browse files

implement csp header within a chost

  • Loading branch information...
rullmann committed Mar 19, 2017
1 parent 2ae72f9 commit 429fb5fd1b6cc4d175b8de9da3d76fd0c5378cd7
Showing with 4 additions and 0 deletions.
  1. +4 −0 files/vhost_template
@@ -84,6 +84,10 @@ server {
% endif
ssl_session_cache builtin:1000 shared:SSL:10m;
% if vhost.get('csp_header', {}):
add_header Content-Security-Policy "${vhost.get('csp_header')}";
% endif
% for (url, ranges) in sorted(vhost.get('restrict_to_ip_ranges', {}).items()):
location ${url} {
% for range in ranges:

0 comments on commit 429fb5f

Please sign in to comment.