File tree 3 files changed +9
-1
lines changed
3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 6
6
ssh_data
7
7
__debug_bin
8
8
.bin
9
+ .env
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ access.
21
21
For example, have you ever wished you could use ` docker push ` and ` docker pull `
22
22
using just an SSH keypair? Well now it's possible.
23
23
24
+ Run our [ cmd/docker] ( ./cmd/docker/ ) example to see it in action!
25
+
24
26
We built this library to support [ imgs.sh] ( https://pico.sh/imgs ) : a private
25
27
docker registry leveraging SSH tunnels.
26
28
Original file line number Diff line number Diff line change @@ -36,9 +36,14 @@ func serveMux(ctx ssh.Context) http.Handler {
36
36
router := http .NewServeMux ()
37
37
slug := ctx .User ()
38
38
39
+ registryUrl := os .Getenv ("REGISTRY_URL" )
40
+ if registryUrl == "" {
41
+ registryUrl = "registry:5000"
42
+ }
43
+
39
44
proxy := httputil .NewSingleHostReverseProxy (& url.URL {
40
45
Scheme : "http" ,
41
- Host : "registry:5000" ,
46
+ Host : registryUrl ,
42
47
})
43
48
44
49
oldDirector := proxy .Director
You can’t perform that action at this time.
0 commit comments