diff options
-rw-r--r-- | nginx/remmy_io.sls | 59 | ||||
-rw-r--r-- | opensmtpd/theos.sls | 7 | ||||
-rw-r--r-- | top.sls | 1 |
3 files changed, 64 insertions, 3 deletions
diff --git a/nginx/remmy_io.sls b/nginx/remmy_io.sls new file mode 100644 index 0000000..62e1dea --- /dev/null +++ b/nginx/remmy_io.sls @@ -0,0 +1,59 @@ +nginx: + ng: + servers: + managed: + remmy.io: + enabled: True + config: + - server: + - server_name: remmy.io + - listen: 80 default_server + - listen: '[::]:80 default_server' + + - location /.well-known/acme-challenge: + - root: /srv/http + + - return: '301 https://$server_name$request_uri' + + + - server: + - server_name: remmy.io + - listen: 443 ssl http2 + - listen: '[::]:443 ssl http2' + + - ssl: 'on' + - ssl_certificate: /etc/letsencrypt/live/remmy.io/fullchain.pem + - ssl_certificate_key: /etc/letsencrypt/live/remmy.io/privkey.pem + - ssl_dhparam: /etc/nginx/dhparam.pem + + - ssl_stapling: 'on' + - ssl_stapling_verify: 'on' + - ssl_trusted_certificate: /etc/letsencrypt/live/remmy.io/fullchain.pem + + # https://developer.mozilla.org/en-US/docs/Security/HTTP_Strict_Transport_Security + - add_header: 'Strict-Transport-Security "max-age=31536000"' + + # Tell browsers not to render the page inside a frame, and avoid clickjacking. + - add_header: X-Frame-Options SAMEORIGIN + + # Tell browsers to not try to auto-detect the Content-Type. + - add_header: X-Content-Type-Options nosniff + + # Enable the Cross-site scripting filter in most recent browsers. + # Normally enabled by default, but enable it anyway if user has disabled it. + - add_header: 'X-XSS-Protection "1; mode=block"' + + # http://www.gnuterrypratchett.com/ + - add_header: 'X-Clacks-Overhead "GNU Terry Pratchett"' + + - error_log: /var/log/nginx/remmy_io.error.log + + - root: /home/kyrias/public_html/ + - index: index.html + - autoindex: 'on' + - try_files: $uri $uri.html $uri/ =404 + + - location ~ \.(js|css|png): + - expires: modified +7d + +# vim: ft=yaml et: diff --git a/opensmtpd/theos.sls b/opensmtpd/theos.sls index 24c57de..ee42b7d 100644 --- a/opensmtpd/theos.sls +++ b/opensmtpd/theos.sls @@ -30,6 +30,7 @@ opensmtpd: - '@kyriasis.com: kyrias@theos.kyriasis.com' - '@lists.kyriasis.com: lists@theos.kyriasis.com' + - '@remmy.io: kyrias@theos.kyriasis.com' sendertable: type: file @@ -38,7 +39,7 @@ opensmtpd: - 'sysbunny: @lucifer.kyriasis.com,sysbunny@kyriasis.com,erik@kyriasis.com' - 'grawity: grawity@theos.kyriasis.com,grawity@kyriasis.com' - 'halosghost: halosghost@theos.kyriasis.com,halosghost@kyriasis.com' - - 'kyrias: @theos.kyriasis.com,@kyriasis.com' + - 'kyrias: @theos.kyriasis.com,@kyriasis.com,@remmy.io' - 'xanadu: xan@kyriasis.com,xanadu@kyriasis.com' listeners: @@ -97,13 +98,13 @@ opensmtpd: - incoming to top-level domains: type: accept tagged: SpamAssassin - for: 'domain { kyriasis.com } virtual <users>' + for: 'domain { kyriasis.com, remmy.io } virtual <users>' deliver_to: lmtp "/var/run/dovecot/lmtp" - relay incoming through dkimproxy: type: accept from: any - for: domain { kyriasis.com, theos.kyriasis.com, lists.kyriasis.com } + for: domain { kyriasis.com, theos.kyriasis.com, lists.kyriasis.com, remmy.io } relay: via smtp://127.0.0.1:10025 - outgoing from dkimproxy: @@ -7,6 +7,7 @@ base: - nginx.matrix_kyriasis_com - nginx.riot_kyriasis_com - nginx.miniflux_kyriasis_com + - nginx.remmy_io - opensmtpd.theos |