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
I have several domains (and/or vhosts) starting with a number, and it's impossible to configure BW for them via environment variables.
The reason is that bash doesn't allow environment variables to start with a number.
Implementations ideas (optional)
A simple, consistent and discoverable way would be to allow multi-site variables to have an underscore _ prefix, that will be sanitised when processing. For that matter, one could just allow any processed env var to have a _ prefix and just indiscriminately trim it off as the first processing step. This is safe because domain or host names cannot have underscores.
So something like
_1nteresting.io_REVERSE_PROXY_URL="..."
will lead to a corresponding nginx server config in /etc/nginx/1nteresting.io/ with server_name 1nteresting.io in server.conf (and in all other places where the domain name is used.
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
What's needed and why?
I have several domains (and/or vhosts) starting with a number, and it's impossible to configure BW for them via environment variables.
The reason is that bash doesn't allow environment variables to start with a number.
Implementations ideas (optional)
A simple, consistent and discoverable way would be to allow multi-site variables to have an underscore
_
prefix, that will be sanitised when processing. For that matter, one could just allow any processed env var to have a_
prefix and just indiscriminately trim it off as the first processing step. This is safe because domain or host names cannot have underscores.So something like
will lead to a corresponding
nginx
server config in/etc/nginx/1nteresting.io/
withserver_name 1nteresting.io
inserver.conf
(and in all other places where the domain name is used.Code of Conduct
The text was updated successfully, but these errors were encountered: