Closed andrewheberle closed 4 years ago
Hi, First thanks for your PR. It's quite handy to be able to configure XOA via env vars, until now I usually advise people in need to use HTTPS to build their proxy for that (well they still can anyway). May I ask you to squash your 11 commits into one ? this as I think it's more relevant to get one functionality per commit and it makes history easier to read (for a revert or whatever).
May I ask you to squash your 11 commits into one
All done, thanks.
This PR introduces configuration of
/etc/xo-server/config.toml
via remco, a lightweight configuration manager so values such as the HTTP port and enabling HTTPS can be managed by environment variables.Remco also replaces tini as PID 1 in the container to execute
rpcbind
andxo-server
and keep them running.An example for usage has been added to the README and
healthcheck.js
has been updated to use the HTTP env var value for its check.The naming of the environment variables are loosely based on the names in the
config.toml
forxo-server
.This PR also removes
EXPOSE 8000
in theDockerfile
as this port is no longer hard coded (although the default is still 8000).