You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-14Lines changed: 16 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -179,20 +179,20 @@ To log the API calls of the client application, set the log level to `DEBUG` and
179
179
180
180
socket-proxy can be configured via command line parameters or via environment variables. If both command line parameter and environment variables are set, the environment variable will be ignored.
|`-allowfrom`|`SP_ALLOWFROM`|`127.0.0.1/32`| Specifies the IP addresses of the clients or the hostname of one specific client allowed to connect to the proxy. The default value is `127.0.0.1/32`, which means only localhost is allowed. This default configuration may not be useful in most cases, but it is because of a secure-by-default design. To allow all IPv4 addresses, set `-allowfrom=0.0.0.0/0`. Alternatively, hostnames (comma-separated) can be set, for example `-allowfrom=traefik`, or `-allowfrom=traefik,dozzle`. Please remember that socket-proxy should never be exposed to a public network, regardless of this extra security layer. |
185
-
|`-allowhealthcheck`|`SP_ALLOWHEALTHCHECK`| (not set/false) | If set, it allows the included health check binary to check the socket connection via TCP port 55555 (socket-proxy then listens on `127.0.0.1:55555/health`) |
186
-
|`-listenip`|`SP_LISTENIP`|`127.0.0.1`| Specifies the IP address the server will bind on. Default is only the internal network. |
187
-
|`-logjson`|`SP_LOGJSON`| (not set/false) | If set, it enables logging in JSON format. If unset, docker-proxy logs in plain text format. |
|`-proxyport`|`SP_PROXYPORT`|`2375`| Defines the TCP port the proxy listens to. |
190
-
|`-shutdowngracetime`|`SP_SHUTDOWNGRACETIME`|`10`| Defines the time in seconds to wait before forcing the shutdown after sigtern or sigint (socket-proxy first tries to graceful shut down the TCP server) |
191
-
|`-socketpath`|`SP_SOCKETPATH`|`/var/run/docker.sock`| Specifies the UNIX socket path to connect to. By default, it connects to the Docker daemon socket. |
192
-
|`-stoponwatchdog`|`SP_STOPONWATCHDOG`| (not set/false) | If set, socket-proxy will be stopped if the watchdog detects that the unix socket is not available. |
193
-
|`-watchdoginterval`|`SP_WATCHDOGINTERVAL`|`0`| Check for socket availabibity every x seconds (disable checks, if not set or value is 0) |
194
-
|`-proxysocketendpoint`|`SP_PROXYSOCKETENDPOINT`| (not set) | Proxy to the given unix socket instead of a TCP port |
195
-
|`-proxysocketendpointfilemode`|`SP_PROXYSOCKETENDPOINTFILEMODE`|`0600`| Explicitly set the file mode for the filtered unix socket endpoint (only useful with `-proxysocketendpoint`) |
|`-allowfrom`|`SP_ALLOWFROM`|`127.0.0.1/32`| Specifies the IP addresses or hostnames (comma-separated) of the clients or the hostname of one specific client allowed to connect to the proxy. The default value is `127.0.0.1/32`, which means only localhost is allowed. This default configuration may not be useful in most cases, but it is because of a secure-by-default design. To allow all IPv4 addresses, set `-allowfrom=0.0.0.0/0`. Alternatively, hostnames can be set, for example `-allowfrom=traefik`, or `-allowfrom=traefik,dozzle`. Please remember that socket-proxy should never be exposed to a public network, regardless of this extra security layer. |
185
+
|`-allowhealthcheck`|`SP_ALLOWHEALTHCHECK`| (not set/false) | If set, it allows the included health check binary to check the socket connection via TCP port 55555 (socket-proxy then listens on `127.0.0.1:55555/health`) |
186
+
|`-listenip`|`SP_LISTENIP`|`127.0.0.1`| Specifies the IP address the server will bind on. Default is only the internal network. |
187
+
|`-logjson`|`SP_LOGJSON`| (not set/false) | If set, it enables logging in JSON format. If unset, docker-proxy logs in plain text format. |
|`-proxyport`|`SP_PROXYPORT`|`2375`| Defines the TCP port the proxy listens to. |
190
+
|`-shutdowngracetime`|`SP_SHUTDOWNGRACETIME`|`10`| Defines the time in seconds to wait before forcing the shutdown after sigtern or sigint (socket-proxy first tries to graceful shut down the TCP server) |
191
+
|`-socketpath`|`SP_SOCKETPATH`|`/var/run/docker.sock`| Specifies the UNIX socket path to connect to. By default, it connects to the Docker daemon socket. |
192
+
|`-stoponwatchdog`|`SP_STOPONWATCHDOG`| (not set/false) | If set, socket-proxy will be stopped if the watchdog detects that the unix socket is not available. |
193
+
|`-watchdoginterval`|`SP_WATCHDOGINTERVAL`|`0`| Check for socket availabibity every x seconds (disable checks, if not set or value is 0) |
194
+
|`-proxysocketendpoint`|`SP_PROXYSOCKETENDPOINT`| (not set) | Proxy to the given unix socket instead of a TCP port |
195
+
|`-proxysocketendpointfilemode`|`SP_PROXYSOCKETENDPOINTFILEMODE`|`0600`| Explicitly set the file mode for the filtered unix socket endpoint (only useful with `-proxysocketendpoint`) |
196
196
197
197
### Changelog
198
198
@@ -210,6 +210,8 @@ socket-proxy can be configured via command line parameters or via environment va
210
210
211
211
1.6 - Cosign: sign a multi-arch container image AND all referenced, discrete images. Image is also available on GHCR.
212
212
213
+
1.7 - also allow comma-separated CIDRs in `-allowfrom` (not only hostnames as in versions > 1.3)
214
+
213
215
## License
214
216
215
217
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
0 commit comments