config

System config files for garbash.com
git clone git://git.garbash.com/alex/config
Log | Files | Refs | README | LICENSE

commit b46901279d2d0c550d849cd391be46c0597ecdff
parent 9f4930befc9b67169f0d42ddc0d8a7a69da9221e
Author: alex <alex@garbash.com>
Date:   Sat,  9 Oct 2021 00:12:54 -0400

irc: Internal IRC (over https!) with gamja hosting

gamja is a pretty sweet up-n-coming IRC client. This patch serves it
over HTTP and provides HTTPS support for the network itself (self-
signed cert) so that catgirl(1) can connect locally on the LAN.

Diffstat:
Metc/acme-client.conf | 2+-
Metc/httpd.conf | 5+++++
Metc/ngircd/ngircd.conf | 6++++++
3 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/etc/acme-client.conf b/etc/acme-client.conf @@ -12,7 +12,7 @@ authority letsencrypt-staging { } domain garbash.com { - alternative names { waste.garbash.com, mail.garbash.com, git.garbash.com, irc.garbash.com } + alternative names { waste.garbash.com, mail.garbash.com, git.garbash.com } domain key "/etc/ssl/private/garbash.com.key" domain full chain certificate "/etc/ssl/garbash.com.fullchain.pem" sign with letsencrypt diff --git a/etc/httpd.conf b/etc/httpd.conf @@ -1,5 +1,10 @@ # $OpenBSD: httpd.conf,v 1.22 2020/11/04 10:34:18 denis Exp $ +server "irc.garbash.com" { + listen on 10.6.6.1 port 80 + root "/htdocs/gamja" +} + server "garbash.com" { listen on * port 80 location "/.well-known/acme-challenge/*" { diff --git a/etc/ngircd/ngircd.conf b/etc/ngircd/ngircd.conf @@ -15,9 +15,15 @@ MaxJoins = 0 MaxNickLength = 9 +[SSL] + CertFile = /etc/ngircd/cert.pem + KeyFile = /etc/ngircd/key.pem + Ports = 6697 + [Options] ChrootDir = /var/ngircd DefaultUserModes = iw + OperCanUseMode = yes [Operator] Name = root