config

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

commit 2d7f373bf8dbe3857ce6de988b374e80984d18d3
parent 6b7f63effbdf31d93c277426822f67e55f3679d7
Author: alex <alex@garbash.com>
Date:   Mon, 11 Oct 2021 17:09:45 -0400

httpd: Use wildcard cert for irc.garbash.com

This was mostly a proof of concept and the location will likely change
as I add automation to it, but it's worth checking in for now!

Diffstat:
Metc/httpd.conf | 17+++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/etc/httpd.conf b/etc/httpd.conf @@ -1,9 +1,5 @@ # $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 @@ -42,3 +38,16 @@ server "git.garbash.com" { request strip 2 } } + +server "irc.garbash.com" { + listen on * tls port 443 + root "/htdocs/gamja" + tls { + certificate "/etc/ssl/uacme/garbash.com/cert.pem" + key "/etc/ssl/uacme/private/garbash.com/key.pem" + } + location "/.well-known/acme-challenge/*" { + root "/acme" + request strip 2 + } +}