From b46901279d2d0c550d849cd391be46c0597ecdff Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 9 Oct 2021 00:12:54 -0400 Subject: [PATCH] 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. --- etc/acme-client.conf | 2 +- etc/httpd.conf | 5 +++++ etc/ngircd/ngircd.conf | 6 ++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/etc/acme-client.conf b/etc/acme-client.conf index bdd43ba..4bad4ba 100644 --- 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 index 61b832b..bbb13d8 100644 --- 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 index a12054d..00c9b6c 100644 --- 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 -- libgit2 1.1.1