mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-01-22 18:24:03 +01:00
acmesh-ssl.bash: add WeeChat relay
This commit is contained in:
parent
358b65f791
commit
0aa2668c79
@ -21,6 +21,7 @@ MUMBLEDIR=/var/lib/mumble-server/ssl
|
|||||||
ZNCDIR=/home/znc/.znc/ssl
|
ZNCDIR=/home/znc/.znc/ssl
|
||||||
NGINXDIR=/etc/nginx/ssl
|
NGINXDIR=/etc/nginx/ssl
|
||||||
ORAGONODIR=/home/oragono/oragono-conf
|
ORAGONODIR=/home/oragono/oragono-conf
|
||||||
|
WEECHATDIR=/home/mikaela/.weechat/ssl
|
||||||
|
|
||||||
# Where is acme.sh + flags applying to them all
|
# Where is acme.sh + flags applying to them all
|
||||||
ACMESH="/root/.acme.sh/acme.sh --install-cert -d $DOMAINNAME"
|
ACMESH="/root/.acme.sh/acme.sh --install-cert -d $DOMAINNAME"
|
||||||
@ -30,7 +31,7 @@ SYSTEMCTLRESTART="systemctl restart --quiet"
|
|||||||
SYSTEMCTLRELOAD="systemctl reload --quiet"
|
SYSTEMCTLRELOAD="systemctl reload --quiet"
|
||||||
|
|
||||||
# Start by creating the directories if they don't exist
|
# Start by creating the directories if they don't exist
|
||||||
/bin/mkdir -p $SYNCPLAYDIR $MUMBLEDIR $ZNCDIR $NGINXDIR
|
/bin/mkdir -p $SYNCPLAYDIR $MUMBLEDIR $ZNCDIR $NGINXDIR $WEECHATDIR
|
||||||
|
|
||||||
# Syncplay - note: reloads certs on every connect like ZNC
|
# Syncplay - note: reloads certs on every connect like ZNC
|
||||||
$ACMESH --cert-file $SYNCPLAYDIR/cert.pem --key-file $SYNCPLAYDIR/privkey.pem --ca-file $SYNCPLAYDIR/chain.pem
|
$ACMESH --cert-file $SYNCPLAYDIR/cert.pem --key-file $SYNCPLAYDIR/privkey.pem --ca-file $SYNCPLAYDIR/chain.pem
|
||||||
@ -59,3 +60,8 @@ chown -R root:root $NGINXDIR
|
|||||||
$ACMESH --key-file $ORAGONODIR/privkey.pem --fullchain-file $ORAGONODIR/fullchain.pem --reloadcmd "$SYSTEMCTLRELOAD oragono"
|
$ACMESH --key-file $ORAGONODIR/privkey.pem --fullchain-file $ORAGONODIR/fullchain.pem --reloadcmd "$SYSTEMCTLRELOAD oragono"
|
||||||
chmod -R 700 $ORAGONODIR
|
chmod -R 700 $ORAGONODIR
|
||||||
chown -R oragono:oragono $ORAGONODIR
|
chown -R oragono:oragono $ORAGONODIR
|
||||||
|
|
||||||
|
$ACMESH --fullchain-file $WEECHATDIR/fullchain.pem --key-file $WEECHATDIR/privkey.pem
|
||||||
|
cat $WEECHATDIR/{fullchain,privkey}.pem > $WEECHATDIR/relay.pem
|
||||||
|
chmod -R 700 $WEECHATDIR
|
||||||
|
chown -R mikaela:mikaela $WEECHATDIR
|
||||||
|
Loading…
Reference in New Issue
Block a user