From 0772508c5a67f93c6614904d24e22300b95bfd02 Mon Sep 17 00:00:00 2001 From: Peter Sanchez Date: Thu, 8 Feb 2024 16:33:32 -0600 Subject: [PATCH] Set proper service type for AutoTLS. Stupid mistake. References: https://todo.code.netlandish.com/~netlandish/links/45 --- cmd/list/main.go | 2 +- cmd/short/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/list/main.go b/cmd/list/main.go index 29e3ff2..1228af8 100644 --- a/cmd/list/main.go +++ b/cmd/list/main.go @@ -85,7 +85,7 @@ func run() error { core.CORSReadOnlyMiddleware, ) - tlsman := cmd.LoadAutoTLS(config, db, models.DomainServiceLinks) + tlsman := cmd.LoadAutoTLS(config, db, models.DomainServiceList) if tlsman != nil { srv = srv.WithCertManager(tlsman) } diff --git a/cmd/short/main.go b/cmd/short/main.go index da57e91..b5ffa71 100644 --- a/cmd/short/main.go +++ b/cmd/short/main.go @@ -83,7 +83,7 @@ func run() error { core.CORSReadOnlyMiddleware, ) - tlsman := cmd.LoadAutoTLS(config, db, models.DomainServiceLinks) + tlsman := cmd.LoadAutoTLS(config, db, models.DomainServiceShort) if tlsman != nil { srv = srv.WithCertManager(tlsman) } -- 2.45.2