From 2d7f373bf8dbe3857ce6de988b374e80984d18d3 Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 11 Oct 2021 17:09:45 -0400 Subject: [PATCH] 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! --- etc/httpd.conf | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/etc/httpd.conf b/etc/httpd.conf index bbb13d8..c699682 100644 --- 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 + } +} -- libgit2 1.1.1