diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2023-11-06 21:19:05 +0000 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2023-11-06 21:19:05 +0000 |
commit | d5272041eea8913ff9e08e1b057861d59195e02f (patch) | |
tree | f8972f56d66356ee385946a4ebfdc32f4725c512 | |
parent | 88ee8791f40d4f5f9272e7b0d859b13f515dc0a8 (diff) | |
download | pillar-d5272041eea8913ff9e08e1b057861d59195e02f.tar.xz |
Add actual
-rw-r--r-- | nginx/actual_kyriasis_com.sls | 44 | ||||
-rw-r--r-- | top.sls | 1 |
2 files changed, 45 insertions, 0 deletions
diff --git a/nginx/actual_kyriasis_com.sls b/nginx/actual_kyriasis_com.sls new file mode 100644 index 0000000..5f15f75 --- /dev/null +++ b/nginx/actual_kyriasis_com.sls @@ -0,0 +1,44 @@ +nginx: + servers: + managed: + actual.kyriasis.com: + enabled: True + config: + - server: + - server_name: actual.kyriasis.com + - listen: 80 + - listen: '[::]:80' + + - include: snippets/security_headers.conf + + - location /.well-known/acme-challenge: + - root: /srv/http + + - location /: + - return: '301 https://$server_name$request_uri' + + + - server: + - server_name: actual.kyriasis.com + - listen: 443 ssl http2 + - listen: '[::]:443 ssl http2' + + - ssl_certificate: /etc/letsencrypt/live/actual.kyriasis.com/fullchain.pem + - ssl_certificate_key: /etc/letsencrypt/live/actual.kyriasis.com/privkey.pem + - ssl_dhparam: /etc/nginx/dhparam.pem + + - ssl_stapling: 'on' + - ssl_stapling_verify: 'on' + - ssl_trusted_certificate: /etc/letsencrypt/live/actual.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/actual.kyriasis.com.error.log + + - location /: + - proxy_pass: http://127.0.0.1:5006 + +# vim: ft=yaml et: @@ -11,6 +11,7 @@ base: - nginx.repsys_kyriasis_com - nginx.remmy_io - nginx.gallery_remmy_io + - nginx.actual_kyriasis_com - opensmtpd.theos |