[fix] allow `env` and `port` to be configurable by config file