feat(proxy): Add reverse proxy feature

This commit is contained in:
Björn Benouarets
2026-02-05 23:58:47 +01:00
parent 07474afae9
commit 30adf0c701
20 changed files with 514 additions and 323 deletions

16
app/middlewares/host.go Normal file
View File

@@ -0,0 +1,16 @@
package middlewares
import (
"net/http"
"git.secnex.io/secnex/masterlog"
)
func HostMiddleware(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
masterlog.Info("HostMiddleware", map[string]interface{}{
"host": r.Host,
})
next.ServeHTTP(w, r)
})
}