fix readme and perms
This commit is contained in:
parent
80d9f229c4
commit
52bc66c555
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
A simple service to proxy unix sockets to http. Useful for containerizing web services that don't natively support listening on unix sockets.
|
A simple service to proxy unix sockets to http. Useful for containerizing web services that don't natively support listening on unix sockets.
|
||||||
|
|
||||||
Usage of unixproxy:
|
```Usage of unixproxy:
|
||||||
-log
|
-log
|
||||||
Log requests to stdout
|
Log requests to stdout
|
||||||
-strip string
|
-strip string
|
||||||
|
@ -11,3 +11,4 @@ Usage of unixproxy:
|
||||||
Unix socket to listen on
|
Unix socket to listen on
|
||||||
-url string
|
-url string
|
||||||
URL to proxy to
|
URL to proxy to
|
||||||
|
```
|
2
main.go
2
main.go
|
@ -66,7 +66,9 @@ func main() {
|
||||||
srv.Handler = http.StripPrefix(c.Strip, frontendProxy)
|
srv.Handler = http.StripPrefix(c.Strip, frontendProxy)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
unixListener, err := net.Listen("unix", c.MySock)
|
unixListener, err := net.Listen("unix", c.MySock)
|
||||||
|
os.Chmod(c.MySock, 0777)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
|
|
Loading…
Reference in New Issue