Skip to content

Commit

Permalink
add security config file includes inside server blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesreid1 committed Jun 26, 2020
1 parent 05dd6ef commit d39c700
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions conf.d_templates/https.DOMAIN.conf.j2
Expand Up @@ -20,8 +20,8 @@ server {
ssl_certificate /etc/letsencrypt/live/{{ server_name_default }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/{{ server_name_default }}/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;

client_max_body_size 100m;
include /etc/nginx/conf.d/secheaders.conf;
include /etc/nginx/conf.d/csp.conf;

location / {
try_files $uri $uri/ =404;
Expand Down Expand Up @@ -60,8 +60,8 @@ server {
ssl_certificate /etc/letsencrypt/live/www.{{ server_name_default }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.{{ server_name_default }}/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;

client_max_body_size 100m;
include /etc/nginx/conf.d/secheaders.conf;
include /etc/nginx/conf.d/csp.conf;

root /www/{{ server_name_default }}/htdocs;

Expand Down Expand Up @@ -99,8 +99,8 @@ server {
ssl_certificate /etc/letsencrypt/live/git.{{ server_name_default }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/git.{{ server_name_default }}/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;

client_max_body_size 100m;
include /etc/nginx/conf.d/secheaders.conf;
include /etc/nginx/conf.d/giteacsp.conf;

location / {
proxy_set_header X-Real-IP $remote_addr;
Expand Down

0 comments on commit d39c700

Please sign in to comment.