feat: add possibility to specify server host address#157
feat: add possibility to specify server host address#157brandur merged 1 commit intoriverqueue:masterfrom
Conversation
|
Thanks! I'm going to follow this up with a small docs patch because I don't think it's obvious enough as written here that |
|
@bgentry FYI, all builds from third party contributors are still failing because of a 403 on the Docker jobs. |
Follows up #157 with some small clean up to how env vars are handled, a doc string making it clear that `HOST` is not require and may be left empty, along with a CHANGELOG entry.
|
Another thing we should possibly consider is when it's appropriate to have env vars prefixed with |
Follows up #157 with some small clean up to how env vars are handled, a doc string making it clear that `HOST` is not require and may be left empty, along with a CHANGELOG entry.
I realized after merging #157 that it's probably not appropriate to use the env var `HOST` because it's so ubiquitous and easily conflated with a value intended for a different, non-River use. For example, `HOST` is set automatically on every computer running Mac OS, and likely other operating systems as well. Since we're prefixing variables with `RIVER_` for other purposes like `RIVER_LOG_LEVEL` in #183 anyway, change this to `RIVER_HOST`. I think we should probably prefix some of the other env vars that River UI uses as well (e.g. `DEV` should maybe be `RIVER_DEV`), but after starting to do that I gave up on it for now since there were a couple where the right thing to do (prefix versus not) wasn't totally clear.
I realized after merging #157 that it's probably not appropriate to use the env var `HOST` because it's so ubiquitous and easily conflated with a value intended for a different, non-River use. For example, `HOST` is set automatically on every computer running Mac OS, and likely other operating systems as well. Since we're prefixing variables with `RIVER_` for other purposes like `RIVER_LOG_LEVEL` in #183 anyway, change this to `RIVER_HOST`. I think we should probably prefix some of the other env vars that River UI uses as well (e.g. `DEV` should maybe be `RIVER_DEV`), but after starting to do that I gave up on it for now since there were a couple where the right thing to do (prefix versus not) wasn't totally clear.
It is already possible to specify the server port with the
PORTenv variable. This PR adds the possibility to also specify the host variable to avoid listening to all IP addresses.This is a nice to have when the container is launched in host network.