Is it possible to start Vault dev server on 0.0.0.0 instead of 127.0.0.1?

可紊 提交于 2021-01-28 04:43:23

问题


I have a Hashicorp Vault server running on an AWS EC2 instance at 127.0.0.1:8200.

In my Security Group's inbound rules, I have TCP 8200 enabled. But, I can't access Vault server from my local machine. I think it's because dev server is only available from inside EC2 instance (because it's running at 120.0.0.1, am I right?).

Is it possible to run Vault dev server at 0.0.0.0 instead, so I can access it from Internet?


回答1:


Start your Vault server with the following command:

vault server -dev -dev-listen-address="0.0.0.0:8200"

You can also specify the address via the VAULT_DEV_LISTEN_ADDRESS environment variable.

Documentation here



来源:https://stackoverflow.com/questions/51676084/is-it-possible-to-start-vault-dev-server-on-0-0-0-0-instead-of-127-0-0-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!