23 lines
531 B
Plaintext
23 lines
531 B
Plaintext
rest {
|
|
# Timeouts
|
|
connect_timeout = 4
|
|
read_timeout = 8
|
|
|
|
# Authorize: llama al API Node
|
|
authorize {
|
|
uri = "%{env:REST_ENDPOINT:-http://node:3000}/authorize"
|
|
method = "post"
|
|
body = "json"
|
|
# send_all = yes -> envía todos los atributos del paquete
|
|
# por defecto rlm_rest ya serializa atributos en JSON
|
|
}
|
|
|
|
# Accounting: opcional
|
|
accounting {
|
|
uri = "%{env:REST_ENDPOINT:-http://node:3000}/accounting"
|
|
method = "post"
|
|
body = "json"
|
|
}
|
|
}
|
|
|