ntnj / tunwg

Secure private tunnel to your local servers
https://tunwg.com
MIT License
213 stars 8 forks source link

Getting error with below docker compose #6

Closed niravjdn closed 1 year ago

niravjdn commented 1 year ago
version: "3.3"
services:
  tunwg:
    image: ghcr.io/ntnj/tunwg
    command: tunwg --forward=http://192.168.2.xxx:xxxx --limit=$$(htpasswd -nbB htpasswd admin admin)

ERROR

2023/07/15 14:27:35 invalid value for --limit. Use htpasswd format

ntnj commented 1 year ago

Hi,

The htpasswd has to be run separately on terminal, and output added to limit argument. You can also just use the password in plain text like: command: tunwg --forward=http://192.168.2.xxx:xxxx --limit=admin:admin