diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2020-02-22 07:20:23 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2020-02-22 07:20:23 +0100 |
commit | 18d5aa4666247d0da7f6ad54f6f3bd7671993b89 (patch) | |
tree | dd83c308491e4702ad149ccfad1cc407d4db57a8 /nginx | |
parent | c04359826433e467a5ea502c37d2f1e802050c5b (diff) | |
download | pillar-18d5aa4666247d0da7f6ad54f6f3bd7671993b89.tar.xz |
Add repsys-test HTTPS nginx config
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'nginx')
-rw-r--r-- | nginx/repsys_kyriasis_com.sls | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/nginx/repsys_kyriasis_com.sls b/nginx/repsys_kyriasis_com.sls index 1536d70..6ce9e11 100644 --- a/nginx/repsys_kyriasis_com.sls +++ b/nginx/repsys_kyriasis_com.sls @@ -59,4 +59,32 @@ nginx: - location /: - return: '301 https://$server_name$request_uri' + + - server: + - server_name: repsys-test.kyriasis.com + - listen: 443 ssl http2 + - listen: '[::]:443 ssl http2' + + - ssl_certificate: /etc/letsencrypt/live/repsys-test.kyriasis.com/fullchain.pem + - ssl_certificate_key: /etc/letsencrypt/live/repsys-test.kyriasis.com/privkey.pem + - ssl_dhparam: /etc/nginx/dhparam.pem + + - ssl_stapling: 'on' + - ssl_stapling_verify: 'on' + - ssl_trusted_certificate: /etc/letsencrypt/live/repsys-test.kyriasis.com/fullchain.pem + + - include: snippets/security_headers.conf + + # http://www.gnuterrypratchett.com/ + - add_header: 'X-Clacks-Overhead "GNU Terry Pratchett"' + + - error_log: /var/log/nginx/repsys-test.kyriasis.com.error.log + + - location ~ \.(js|css|png): + - expires: modified +7d + + - location /: + - include: uwsgi_params + - uwsgi_pass: localhost:3003 + # vim: ft=yaml et: |