aboutsummaryrefslogtreecommitdiff
path: root/registry
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--registry/registry.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/registry/registry.go b/registry/registry.go
index cbadd5d..417bb9b 100644
--- a/registry/registry.go
+++ b/registry/registry.go
@@ -164,7 +164,10 @@ func (r *Registry) Inbox(name string, req *http.Request) error {
}
logger := r.log.With("type", "inbox")
- logger.Debugf("host header is %s", req.Host)
+ if req.Host != handler.handlerCfg.Name {
+ logger.Warnf("%s != %s, configured domain should match incoming Host: header otherwise HTTP signature verification will fail. You'll need to enable 'ProxyPreserveHost' (for apache2) or proxy_set_header Host $host; (for nginx)", req.Host, handler.handlerCfg.Name)
+ }
+
verifier, err := httpsig.NewVerifier(req)
if err != nil {
return err