~netlandish/links

0772508c5a67f93c6614904d24e22300b95bfd02 — Peter Sanchez 9 months ago c6b7ac2
Set proper service type for AutoTLS. Stupid mistake.

References: https://todo.code.netlandish.com/~netlandish/links/45
2 files changed, 2 insertions(+), 2 deletions(-)

M cmd/list/main.go
M cmd/short/main.go
M cmd/list/main.go => cmd/list/main.go +1 -1
@@ 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)
	}

M cmd/short/main.go => cmd/short/main.go +1 -1
@@ 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)
	}