summaryrefslogtreecommitdiffstats
path: root/theos
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2017-01-10 16:32:21 +0000
committerJohannes Löthberg <johannes@kyriasis.com>2017-01-10 16:32:21 +0000
commit537bfdd77291e7480b1be782a678002811aec8bf (patch)
treed2a76ae9d9faaedf03ed6183fbc1d3d4a8513c42 /theos
parent0b401848cab2ff281f6ada57784858182e4c3123 (diff)
downloadfile-537bfdd77291e7480b1be782a678002811aec8bf.tar.xz
Add matrix.kyriasis.com cert
Diffstat (limited to 'theos')
-rw-r--r--theos/certs/init.sls1
-rw-r--r--theos/certs/matrix_kyriasis_com.sls25
2 files changed, 26 insertions, 0 deletions
diff --git a/theos/certs/init.sls b/theos/certs/init.sls
index 9e6647b..69999e7 100644
--- a/theos/certs/init.sls
+++ b/theos/certs/init.sls
@@ -2,6 +2,7 @@ include:
- .theos_kyriasis_com
- .xan_kyriasis_com
- .git_kyriasis_com
+ - .matrix_kyriasis_com
/etc/letsencrypt/archive:
file.directory:
diff --git a/theos/certs/matrix_kyriasis_com.sls b/theos/certs/matrix_kyriasis_com.sls
new file mode 100644
index 0000000..efdffe5
--- /dev/null
+++ b/theos/certs/matrix_kyriasis_com.sls
@@ -0,0 +1,25 @@
+include:
+ - nginx.ng
+
+matrix.kyriasis.com:
+ acme.cert:
+ - email: johannes@kyriasis.com
+ - webroot: /srv/http/
+ - keysize: 4096
+
+ - watch_in:
+ - service: nginx_service
+ - require_in:
+ - service: nginx_service
+
+synapse-access-matrix:
+ acl.present:
+ - name: /etc/letsencrypt/archive/matrix.kyriasis.com/
+ - acl_type: user
+ - acl_name: synapse
+ - perms: r-x
+ - recurse: True
+ - require_in:
+ - acme: matrix.kyriasis.com
+
+# vim: set ft=yaml et: