Path configuration ability (#713)

Adds a new path property for those running the consul agent behind a proxy not at the root path.

Fixes gh-711.

Co-authored-by: Spencer Gibb <sgibb@pivotal.io>
This commit is contained in:
Nikita Safonov
2021-03-12 23:23:16 +03:00
committed by GitHub
parent fd823103dd
commit 0bbc087dcc
4 changed files with 48 additions and 7 deletions

View File

@@ -61,6 +61,7 @@
|spring.cloud.consul.enabled | `true` | Is spring cloud consul enabled.
|spring.cloud.consul.host | `localhost` | Consul agent hostname. Defaults to 'localhost'.
|spring.cloud.consul.port | `8500` | Consul agent port. Defaults to '8500'.
|spring.cloud.consul.path | | Custom path in case consul is running behind a reverse proxy under non-root path.
|spring.cloud.consul.retry.enabled | `true` | If consul retry is enabled.
|spring.cloud.consul.retry.initial-interval | `1000` | Initial retry interval in milliseconds.
|spring.cloud.consul.retry.max-attempts | `6` | Maximum number of attempts.
@@ -75,4 +76,4 @@
|spring.cloud.consul.tls.key-store-password | | Password to an external keystore.
|spring.cloud.consul.tls.key-store-path | | Path to an external keystore.
|===
|===