#500 validate that there is an address in consul service, also made this clear in docs (#520)

This commit is contained in:
Tom Pallister
2018-07-31 21:21:46 +01:00
committed by GitHub
parent b854ca63ce
commit 43ad065e4a
4 changed files with 62 additions and 15 deletions

View File

@ -63,7 +63,7 @@ You services need to be added to Consul something like below (c# style but hopef
is not to add http or https to the Address field. I have been contacted before about not accepting scheme in Address and accepting scheme
in address. After reading `this <https://www.consul.io/docs/agent/services.html>`_ I don't think the scheme should be in there.
.. code-block: json
.. code-block: csharp
new AgentService()
{
@ -73,6 +73,17 @@ in address. After reading `this <https://www.consul.io/docs/agent/services.html>
ID = "some-id",
}
Or
.. code-block:: json
"Service": {
"ID": "some-id",
"Service": "some-service-name",
"Address": "localhost",
"Port": 8080
}
ACL Token
---------