node-consul-service 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,6 +18,14 @@ A Node.js service that integrates with HashiCorp Consul for service discovery an
|
|
|
18
18
|
npm install node-consul-service
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
+
### Configuration
|
|
22
|
+
Create a `.env` file in your project root with the following variables:
|
|
23
|
+
```env
|
|
24
|
+
CONSUL_HOST=your-consul-host
|
|
25
|
+
CONSUL_PORT=8500
|
|
26
|
+
CONSUL_SECURE=false
|
|
27
|
+
```
|
|
28
|
+
|
|
21
29
|
### Function Usage
|
|
22
30
|
Here are the main functions available in the service:
|
|
23
31
|
|