Skip to content
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

Configuring emqttd from environment variables #667

Closed
danielrhodes opened this issue Aug 31, 2016 · 3 comments
Closed

Configuring emqttd from environment variables #667

danielrhodes opened this issue Aug 31, 2016 · 3 comments
Assignees

Comments

@danielrhodes
Copy link

I would like to set certain configuration variables from the environment, specifically the HTTP/S port. Is there a way to do this currently? I did not see anything in the docs, but it seems like it would be useful in many situations.

@emqplus
Copy link
Contributor

emqplus commented Aug 31, 2016

@danielrhodes, it's okay:) Plan to enhance the emqttd_conf module in 2.x release to support OS environment.

@danielrhodes
Copy link
Author

@emqplus Thanks Feng! Is that the file I should be looking at? I might as well give it a shot, and if it's any good I'll make a PR.

@emqplus
Copy link
Contributor

emqplus commented Nov 9, 2016

@danielrhodes OS Environment Variables have been supported in 2.0-rc.3 release: http://emqtt.io/docs/v2/config.html#os-environment-variables

Env Description
EMQ_NODE_NAME Erlang node name
EMQ_NODE_COOKIE Cookie for distributed erlang node
EMQ_MAX_PORTS Maximum number of opened sockets
EMQ_TCP_PORT MQTT TCP Listener Port, Default: 1883
EMQ_SSL_PORT MQTT SSL Listener Port, Default: 8883
EMQ_HTTP_PORT HTTP/WebSocket Port, Default: 8083
EMQ_HTTPS_PORT HTTPS/WebSocket Port, Default: 8084

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants