-
-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT] Enable SERVER_ALLOWEDIPS_PEER_ declaration by comma #331
Comments
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid. |
No idea what that |
Sure, this is a feature request. The .env file is supported by docker to add enviromental variables during docker deploy. Docker .env doc. For now, to make a site-to-site, there must be individuals calls for each client:
For 3 clients, this is ok to admin. When this number grows a bit, it is kind of difficult to track. My suggestion is to make like peer declaration, by comma separated.
The problem is that subnets are comma separated.
Is is possible to reimplement this line to identify different clients with dot-comma? In other words, map like peers:
|
so instead of setting
you want to set
? |
IMHO this FR would only add complexity that we have to support. I am not in favor. |
My suggestion is to keep the original var, but remap it as an array breaking by substring. I will try to make some code for suggestions to clarify. |
As an example: I just want to merge all
Now, I just need to extract the corresponding peer information:
can be replaced by substring. Of course my code is not good and is just to present a point. If the variable is not defined, it looks for this new pattern, take the substring and change nothing else. |
The way you describe it actually doesn't even save any keystrokes. I see no benefit to this, but a bunch of risk and development cost. Plus, your suggestion would break if you try to add multiple comma separated ranges for a single peer. Anyway, this is not something we will add due to high cost to benefit ratio. |
Sure, thx anyway. I will try to find another way to fix my problem. |
Is this a new feature request?
Wanted change
I'm using
.env
file to declare peer as follows:Reason for change
SERVER_ALLOWEDIPS_PEER_
variable is not identified for multiple peers:Proposed code change
No response
The text was updated successfully, but these errors were encountered: