diff options
author | Aaron LI <aly@aaronly.me> | 2018-03-14 17:18:01 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2018-03-14 17:18:01 +0800 |
commit | de6c949a2956deed27b9c053bfcaac1a47ed43a6 (patch) | |
tree | 9ef16150e20ad4fe5072f64d9388660c25aa0ed6 /roles/znc/templates/acme/znc.j2 | |
parent | 4e4575924b61d26c9e3e0d0770fc2908ac192f7f (diff) | |
download | ansible-dfly-vps-de6c949a2956deed27b9c053bfcaac1a47ed43a6.tar.bz2 |
Add znc role: IRC bouncer
Diffstat (limited to 'roles/znc/templates/acme/znc.j2')
-rw-r--r-- | roles/znc/templates/acme/znc.j2 | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/roles/znc/templates/acme/znc.j2 b/roles/znc/templates/acme/znc.j2 new file mode 100644 index 0000000..de849b7 --- /dev/null +++ b/roles/znc/templates/acme/znc.j2 @@ -0,0 +1,28 @@ +#!/bin/sh +# +# ACME deployment script +# + +# NOTE: +# ZNC supports SSLKeyFile and SSLDHParamFile since v1.7 +# +#cp -v /usr/local/etc/ssl/acme/private/{{ network.domain }}.pem \ +# /usr/local/etc/znc/znc.ssl.key +#cp -v /usr/local/etc/ssl/acme/{{ network.domain }}/fullchain.pem \ +# /usr/local/etc/znc/znc.ssl.crt +#chown znc:znc /usr/local/etc/znc/znc.ssl.key /usr/local/etc/znc/znc.ssl.crt +#chmod 0400 /usr/local/etc/znc/znc.ssl.key /usr/local/etc/znc/znc.ssl.crt + +# SSL: https://wiki.znc.in/Signed_SSL_certificate +# Everything in a single file, in the order from the most *private* to +# the most *public* entries, except for the root certificate. +# i.e., cat ssl.key ssl.cert dhparam.pem > znc.allinone.pem +# +cat /usr/local/etc/ssl/acme/private/{{ network.domain }}.pem \ + /usr/local/etc/ssl/acme/{{ network.domain }}/fullchain.pem \ + /usr/local/etc/ssl/dhparam4096.pem \ + > /usr/local/etc/znc/znc.allinone.pem +chown znc:znc /usr/local/etc/znc/znc.allinone.pem +chmod 0400 /usr/local/etc/znc/znc.allinone.pem + +reload znc |