-
Notifications
You must be signed in to change notification settings - Fork 0
/
jsconfig.html
51 lines (49 loc) · 2.58 KB
/
jsconfig.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<html lang="en-EN">
<head>
<link rel="stylesheet" href="css/bootstrap.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Developer edition connection</title>
</head>
<body class="container">
<br>
<h3>Configure TokenD Developer edition for public access</h3>
<br>
By default TokenD web client from the Developer edition is pointed to <code>localhost</code>.
Such client works fine on a local machine but it can't be accessed by public IP or domain.
Also the mobile TokenD wallet can't use configuration QR codes generated by localhost-pointed web client.
<br>
<br>
<div class="alert alert-warning" role="alert">
<p><b>Warning</b></p>
Developer edition is not intended for any kind of production use.
If you would like to do production or demo deployment, we highly reccomend to use
<a href="https://gitlab.com/tokend/tokend-cli" target="_blank">this tool</a> instead.
</div>
<br>
In order to enable public access to your TokenD Developer edition instance follow these steps:
<br><br>
<ol start="0" style="line-height:24pt;">
<li>Ensure that your machine has a real IP or domain</li>
<li>Ensure that port <code>8000</code> is open on your machhine.
Navigate to <code>https://YOUR_IP:8000/_/api/</code> while Developer edition is running –
<a href="https://docs.tokend.io/horizon/#operation/getInfo" target="_blank">Horizon info</a> must be displayed
</li>
<li><b>Optional:</b> To be able to open web client just by IP or domain create
<code>80 -> 8060</code> port forwarding rule on your machine
or edit <code>web_client</code> port in the <code>docker-compose.yml</code> file.
Of course in this case ensure that <code>80</code> port is open and free on your machine
</li>
<li>Open <code>configs/client.js</code> file and replace
all occurances of <code>localhost</code> with your IP or domain
</li>
<li>Open <code>configs/api.yml</code> and in field <code>storage.client_url</code> replace
<code>localhost</code> with your IP or domain
</li>
<li>Restart the Developer edition: <code>docker-compose restart</code></li>
</ol>
Now you must be able to access your Developer edition by public IP or domain
and use it's configuration QR codes in the
<a href="https://demo.tokend.io/downloads"target="_blank">mobile wallet</a>
<br><br>
</body>