Skip to content

Commit 48703c7

Browse files
committed
feat: add config for docker socket proxy
1 parent 1de735d commit 48703c7

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

docs/guides/advanced.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@ After you restart your app and login to Tinyauth you should be automatically log
1515
You can use the `tinyauth.basic.password.file` label instead of the plain one so as your password can remain safe in a secret file. Make sure to add the secret file as a volume to Tinyauth.
1616
:::
1717

18+
## Socket Proxy
19+
20+
For increased security you may be using a docker socket proxy like [Tecnativa's](https://github.com/Tecnativa/docker-socket-proxy), in this case you can configure Tinyauth to use the proxy instead of binding to the socket. This can be done by adding the following environment variable to the Tinyauth container:
21+
22+
```sh
23+
DOCKER_HOST=tcp://docker-socket-proxy:2375
24+
```
25+
26+
> [!WARNING]
27+
> Make sure that Tinyauth can reach the docker socket proxy container.
28+
1829
## Host network and Traefik
1930

2031
When using `network_mode: host` in docker alongside with Traefik, the `redirect_uri` in Tinyauth will always be the app URL instead of of the actual redirect URI. This is because Traefik does not respect the `X-Forwarded-Host` header from NAT IP addresses such as the docker internal one. This can be easily fixed by either using the following Traefik config:

0 commit comments

Comments
 (0)