You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 lines
586 B

server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
{% for ip in pillar['developer_ips'] %}
allow {{ ip }};
{% endfor %}
deny all;
add_header Strict-Transport-Security "max-age={{ pillar['hsts_max_age'] }}; includeSubDomains; preload" always;
server_name {{ pillar['sentry_server_name'] }};
location / {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
proxy_pass http://localhost:9000;
}
}