summaryrefslogtreecommitdiff
path: root/scripts/templates/eip-service.json
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/templates/eip-service.json')
-rw-r--r--scripts/templates/eip-service.json32
1 files changed, 32 insertions, 0 deletions
diff --git a/scripts/templates/eip-service.json b/scripts/templates/eip-service.json
new file mode 100644
index 0000000..8d1b0a1
--- /dev/null
+++ b/scripts/templates/eip-service.json
@@ -0,0 +1,32 @@
+{
+ "serial": 3,
+ "version": 3,
+ "locations": { {% for loc in locations %}
+ "{{loc}}": {
+ "name": "{{ locations[loc]["name"] }}",
+ "country_code": "{{ locations[loc]["country_code"] }}",
+ "hemisphere": "{{ locations[loc]["hemisphere"] }}",
+ "timezone": {{ locations[loc]["timezone"] }},
+ },{% endfor %}
+ },
+ "gateways": { {% for gw in gateways %}
+ "{{gw}}": {
+ "host": "{{ gateways[gw]["host"] }}",
+ "ip_address": "{{ gateways[gw]["ip_address"] }}",
+ "location": "{{ gateways[gw]["location"] }}",
+ "capabilities": {
+ "adblock": false,
+ "filter_dns": false,
+ "limited": false,
+ "transport": [ {% for tr, proto, port, options in gateways[gw]["transports"] %}
+ {"type": "{{ tr }}",
+ "protocols": ["{{ proto }}"],
+ "ports": [{{ port }}],{% if options %}
+ "options": {{ options | tojson }},{% endif %}
+ },{% endfor %}
+ ],
+ },
+ },{% endfor %}
+ },
+ "openvpn_configuration": {{ openvpn|tojson(indent=8) }}
+}