introduce env DEBUG_HUB; to help understand #54

- injects a mitmproxy between the caching layer and DockerHub's registry-1.docker.io
- it also disables VERIFY_SSL so the mitmproxy can be used;
- DEBUG_HUB's mitmweb is exposed on port 8082
- both DEBUG and DEBUG_HUB can be enabled independently
This commit is contained in:
Ricardo Pardini
2020-10-30 00:20:18 +01:00
parent ffc7540f43
commit aaf7fa0308
3 changed files with 50 additions and 15 deletions

View File

@@ -81,6 +81,7 @@ http {
# Just in case you want to rewrite some hosts. Default maps directly.
map $host $targetHost {
hostnames;
include /etc/nginx/docker.targetHost.map;
default $host;
}