Skip to content
Snippets Groups Projects
Unverified Commit d5a59407 authored by micah's avatar micah :speech_balloon:
Browse files

Stay with v3 of the API for now.

Until the v4 API is finalized, we should not be advertising the v4 api.

See vpnweb#19
parent 9e0f4bf0
Branches v3api
Tags
1 merge request!37Stay with v3 of the API for now.
Pipeline #61112 failed
......@@ -29,12 +29,12 @@
path: "/etc/leap/config/vpnweb/{{ item }}"
state: directory
with_items:
- 4
- 3
- name: "Render the eip-service.json template"
template:
src: 'eip-config.json.j2'
dest: '/etc/leap/config/vpnweb/4/eip-service.json'
dest: '/etc/leap/config/vpnweb/3/eip-service.json'
notify:
- "restart docker-vpnweb-vpnweb"
......
......@@ -35,8 +35,8 @@ def produceEipConfig(config, obfs4_state_dir, public_domain, transports):
# Build the JSON data structure that needs to end up in eip-service.json.
eip_config = {
"serial": 4,
"version": 4,
"serial": 3,
"version": 3,
"locations": config.locations,
"gateways": [{
"host": "%s.%s" % (v["inventory_hostname"], public_domain),
......@@ -65,7 +65,7 @@ def produceProviderConfig(public_domain, provider_api_uri, ca_cert_uri, ca_publi
# Build the JSON data structure that needs to end up in provider.json.
provider_config = {
"api_uri": provider_api_uri,
"api_version": "4",
"api_version": "3",
"ca_cert_fingerprint": "SHA256: " + ca_fp,
"ca_cert_uri": ca_cert_uri,
"default_language": "en",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment