Last active
February 21, 2022 21:15
-
-
Save gdamjan/099ce9df5f0f2ef0a4faab6f8018b038 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=soju IRC bouncer service | |
After=network.target | |
[Service] | |
Type=simple | |
DynamicUser=yes | |
StateDirectory=soju | |
LogsDirectory=soju | |
ConfigurationDirectory=soju | |
Restart=always | |
ExecStart=/usr/bin/soju --config /etc/soju/config | |
ExecReload=/bin/kill -HUP $MAINPID | |
# TLS | |
RuntimeDirectory=soju | |
LoadCredential=key.pem:/etc/letsencrypt/live/irc.damjan.ie.mk/privkey.pem | |
LoadCredential=cert.pem:/etc/letsencrypt/live/irc.damjan.ie.mk/fullchain.pem | |
ExecStartPre=ln -s ${CREDENTIALS_DIRECTORY}/key.pem /run/soju/key.pem | |
ExecStartPre=ln -s ${CREDENTIALS_DIRECTORY}/cert.pem /run/soju/cert.pem | |
# in the soju config file, you can then have: | |
# | |
# tls /run/soju/cert.pem /run/soju/key.pem | |
# | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get this