mirror of https://github.com/hashicorp/consul
Merge pull request #1167 from railsguru/master
Add -http-port option to change the HTTP API portpull/1217/head
commit
80d26f9156
|
@ -81,6 +81,7 @@ func (c *Command) readConfig() *Config {
|
||||||
|
|
||||||
cmdFlags.StringVar(&cmdConfig.ClientAddr, "client", "", "address to bind client listeners to (DNS, HTTP, HTTPS, RPC)")
|
cmdFlags.StringVar(&cmdConfig.ClientAddr, "client", "", "address to bind client listeners to (DNS, HTTP, HTTPS, RPC)")
|
||||||
cmdFlags.StringVar(&cmdConfig.BindAddr, "bind", "", "address to bind server listeners to")
|
cmdFlags.StringVar(&cmdConfig.BindAddr, "bind", "", "address to bind server listeners to")
|
||||||
|
cmdFlags.IntVar(&cmdConfig.Ports.HTTP, "http-port", 0, "http port to use")
|
||||||
cmdFlags.StringVar(&cmdConfig.AdvertiseAddr, "advertise", "", "address to advertise instead of bind addr")
|
cmdFlags.StringVar(&cmdConfig.AdvertiseAddr, "advertise", "", "address to advertise instead of bind addr")
|
||||||
cmdFlags.StringVar(&cmdConfig.AdvertiseAddrWan, "advertise-wan", "", "address to advertise on wan instead of bind or advertise addr")
|
cmdFlags.StringVar(&cmdConfig.AdvertiseAddrWan, "advertise-wan", "", "address to advertise on wan instead of bind or advertise addr")
|
||||||
|
|
||||||
|
@ -967,6 +968,7 @@ Options:
|
||||||
-atlas-endpoint=1.2.3.4 The address of the endpoint for Atlas integration.
|
-atlas-endpoint=1.2.3.4 The address of the endpoint for Atlas integration.
|
||||||
-bootstrap Sets server to bootstrap mode
|
-bootstrap Sets server to bootstrap mode
|
||||||
-bind=0.0.0.0 Sets the bind address for cluster communication
|
-bind=0.0.0.0 Sets the bind address for cluster communication
|
||||||
|
-http-port=8500 Sets the HTTP API port to listen on
|
||||||
-bootstrap-expect=0 Sets server to expect bootstrap mode.
|
-bootstrap-expect=0 Sets server to expect bootstrap mode.
|
||||||
-client=127.0.0.1 Sets the address to bind for client access.
|
-client=127.0.0.1 Sets the address to bind for client access.
|
||||||
This includes RPC, DNS, HTTP and HTTPS (if configured)
|
This includes RPC, DNS, HTTP and HTTPS (if configured)
|
||||||
|
|
|
@ -146,6 +146,11 @@ The options below are all specified on the command-line.
|
||||||
initialized with an encryption key, then the provided key is ignored and
|
initialized with an encryption key, then the provided key is ignored and
|
||||||
a warning will be displayed.
|
a warning will be displayed.
|
||||||
|
|
||||||
|
* <a name="_http_port"></a><a href="#_http_port">`-http-port`</a> - the HTTP API port to listen on.
|
||||||
|
This overrides the default port 8500. This option is very useful when deploying Consul
|
||||||
|
to an environment which communicates the HTTP port through the environment e.g. PaaS like CloudFoundry, allowing
|
||||||
|
you to set the port directly via a Procfile.
|
||||||
|
|
||||||
* <a name="_join"></a><a href="#_join">`-join`</a> - Address of another agent
|
* <a name="_join"></a><a href="#_join">`-join`</a> - Address of another agent
|
||||||
to join upon starting up. This can be
|
to join upon starting up. This can be
|
||||||
specified multiple times to specify multiple agents to join. If Consul is
|
specified multiple times to specify multiple agents to join. If Consul is
|
||||||
|
|
Loading…
Reference in New Issue