Closed whatnik closed 1 year ago
Nice suggestion, but what about environment variables?
While I came up with the idea to transfer as is
...
image: tarampampam/3proxy
environment:
- 'USERS={"login": "user1", "password": "pass1"}, {"login": "user2", "password": "pass2"}'
ports:
- 3128:3128/tcp
...
...
"max_connections": "${MAX_CONNECTIONS:-1024}",
"auth": [${USERS:-}],
"ports": {
...
@whatnik What do you think about changes in PR #29?
It allows using of an additional environment variable EXTRA_ACCOUNTS
with a value in the format {"user1": "pass1", "user2": "pass2"}
for additional accounts set up.
Closed too early, I didn't merge PR yet :D Just want to hear your opinion about it
For example like this: 3proxy.cfg.json
3proxy.cfg.mustach
To separate users by commas, you need to conjure. https://stackoverflow.com/questions/6114435/in-mustache-templating-is-there-an-elegant-way-of-expressing-a-comma-separated-l