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
Is your feature request related to a problem? Please describe.
I want to create an unRAID template for this image, but unRAID does not make it easy for the end users to customize arguments passed to the command. It is possible for the template creator to add them, but it's all in a single line of text. Since it doesn't seem they're gonna change that anytime soon, I thought making this image configurable via environment variables would probably be easier.
Describe the solution you'd like
Make it possible to configure this with environment variables roughly equivalent to the the command line arguments that are available.
Describe alternatives you've considered
Eventually propose a PR for the Unraid webGUI so that it can add command line arguments in a better way and/or have full support for Docker compose syntax.
Repeatable arguments are not easy to map into environment variables (e.g. if you have several GET endpoints you want to allow without some very creative regex). I think Collabora Code solves it by essentially having variables like aliasgroup1, aliasgroup2, ..., aliasgroupN. Does it look good? No. Does it work? Probably 😜
thanks again for Your input. For security reasons, I avoid using external dependencies other than the Go standard library in this project.
There is no need to use more than one allowlist configuration for one http method. You can handle multipe http endpoints with one regexp, see the example for watchtower below. More endpoints would make the regexp complex, I know. But I recommend using one separate socket-proxy for each service.
I just created a testing image: docker pull wollomatic/socket-proxy:testing
Activity
wollomatic commentedon Aug 6, 2024
Hello @andrebrait,
thanks for your suggestion. I will have the time to implement this in the following days.
andrebrait commentedon Aug 8, 2024
I'm not too familiar with golang, but this seems to implement a somewhat similar interface to the argument parser I found in
internal/config/config.go: https://github.com/caarlos0/envandrebrait commentedon Aug 8, 2024
Repeatable arguments are not easy to map into environment variables (e.g. if you have several GET endpoints you want to allow without some very creative regex). I think Collabora Code solves it by essentially having variables like
aliasgroup1,aliasgroup2, ...,aliasgroupN. Does it look good? No. Does it work? Probably 😜wollomatic commentedon Aug 8, 2024
Hi @andrebrait,
thanks again for Your input. For security reasons, I avoid using external dependencies other than the Go standard library in this project.
There is no need to use more than one allowlist configuration for one http method. You can handle multipe http endpoints with one regexp, see the example for watchtower below. More endpoints would make the regexp complex, I know. But I recommend using one separate socket-proxy for each service.
I just created a testing image:
docker pull wollomatic/socket-proxy:testingA first integration test shows the configuration works.
I also updated the README.md in the develop branch.
wollomatic commentedon Aug 10, 2024
https://github.com/wollomatic/socket-proxy/releases/tag/1.4.0
Container image: wollomatic/socket-proxy:1.4.0