From e9ad16b83ebd2c519b8b6f80e366a331da667c13 Mon Sep 17 00:00:00 2001 From: nxshock Date: Sun, 10 Mar 2024 18:18:23 +0500 Subject: [PATCH 1/2] Fix ACME challenge dir access --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index ec3811d..0cb5e53 100644 --- a/main.go +++ b/main.go @@ -48,7 +48,7 @@ func main() { slog.Debug("Starting HTTP listener", slog.String("addr", config.HttpListenAddr)) smux := http.NewServeMux() - smux.Handle(defaultAcmeChallengePath, http.StripPrefix(defaultAcmeChallengePath, http.FileServer(http.Dir(config.AcmeChallengePath)))) + smux.Handle(defaultAcmeChallengePath, http.FileServer(http.Dir(config.AcmeChallengePath))) smux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { http.Redirect(w, r, "https://"+r.Host+r.RequestURI, http.StatusMovedPermanently) }) From ea03e2c4fb0a0ed51cdb8924e57e16dbf126b287 Mon Sep 17 00:00:00 2001 From: nxshock Date: Sun, 10 Mar 2024 18:19:13 +0500 Subject: [PATCH 2/2] v0.0.4 release --- PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKGBUILD b/PKGBUILD index 52a5275..bb4e16f 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,5 +1,5 @@ pkgname=gonx -pkgver=0.0.3 +pkgver=0.0.4 pkgrel=1 pkgdesc='Simple reverse proxy server' arch=('x86_64' 'aarch64')