Initial stack: FreeRADIUS + Node API + docker-compose
This commit is contained in:
22
freeradius/mods-available/rest
Normal file
22
freeradius/mods-available/rest
Normal file
@@ -0,0 +1,22 @@
|
||||
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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user