mirror of https://github.com/status-im/consul.git
14 lines
438 B
Plaintext
14 lines
438 B
Plaintext
|
---
|
||
|
"*":
|
||
|
GET:
|
||
|
"*":
|
||
|
latency: ${ location.search.index ? env('CONSUL_LATENCY', 60000) : env('CONSUL_LATENCY', 0) }
|
||
|
headers:
|
||
|
response:
|
||
|
Status-Code: ${
|
||
|
env('CONSUL_ACLS_LEGACY', false) ?
|
||
|
500 :
|
||
|
env('CONSUL_ACLS_ENABLE', false) ? (headers['x-consul-token'] !== '' ? 200 : 403) : 401
|
||
|
}
|
||
|
X-Consul-Index: ${ parseInt((location.search.index || 1)) + 1}
|