Make vault load balancer sticky

Assets like css and js were not proxying correctly. I think it may be
because they were proxying to a different instance and that the paths
are dynamic. This should route subsequent requests for the session to
a single backend.
This commit is contained in:
IamTheFij 2022-09-06 17:17:14 -07:00
parent c8b9063b3e
commit cc8e6faf36

View File

@ -220,6 +220,7 @@ CF_ZONE_API_TOKEN={{ .Data.data.api_token_zone_read }}
{{ with service "vault" -}} {{ with service "vault" -}}
[http.services.vault] [http.services.vault]
[http.services.vault.loadBalancer] [http.services.vault.loadBalancer]
[http.services.vault.loadBalancer.sticky.cookie]
{{ range . -}} {{ range . -}}
[[http.services.vault.loadBalancer.servers]] [[http.services.vault.loadBalancer.servers]]
url = "http://{{ .Address }}:{{ .Port }}" url = "http://{{ .Address }}:{{ .Port }}"