29 lines
944 B
Django/Jinja
29 lines
944 B
Django/Jinja
{
|
|
"lg": {
|
|
"name": "Mans's looking glass",
|
|
"host": "{{ lg.backend.host | default('127.0.0.1') }}",
|
|
"port": {{ lg.backend.port | default(3000) }},
|
|
"shared_secret": "{{ lg.backend.shared_secret | default('') }}"
|
|
},
|
|
"rate_limit": {
|
|
"requests": {{ lg.backend.rate_limit.request | default(20) }},
|
|
"time_window": {{ lg.backend.rate_limit.time_window | default(300) }}
|
|
},
|
|
"routers": {
|
|
{% for router in lg.backend.routers | default([]) %}
|
|
"{{ router.code }}": {
|
|
"code": "{{ router.code }}",
|
|
"description": "{{ router.description }}",
|
|
"ipv4": "{{ router.ipv4 | default('') }}",
|
|
"ipv6": "{{ router.ipv6 | default('') }}",
|
|
"agent": {
|
|
"host": "{{ router.agent.host | default('127.0.0.1')}}",
|
|
"port": {{ router.agent.port | default(4242)}},
|
|
"shared_secret": "{{ router.agent.shared_secret | default('')}}"
|
|
}
|
|
}{{ "," if not loop.last }}
|
|
{% endfor %}
|
|
}
|
|
}
|
|
|