nerves-hub
Search…
Connecting to other environments
Some cases may require you to target other instances of NervesHub, such as testing a staging environment or directing devices to a self-hosted NervesHub. In these cases, you'll need to add your server's information to your project's application config:
1
host = "my-nerves-hub.org"
2
port = 443
3
# With a separate instance, the Server CA Certificates will be different
4
# and need to be provided.
5
ca_certs = "/path/to/my-nerves-hub.org/ca_certs"
6
7
config :nerves_hub_link,
8
device_api_host: "device.#{host}",
9
device_api_sni: 'device.#{host}',
10
device_api_port: port,
11
ca_certs: ca_certs
12
13
config :nerves_hub_user_api,
14
host: "api.#{host}",
15
port: port,
16
server_name_indication: "api.#{host}",
17
ca_certs: ca_certs
Copied!
Last modified 9mo ago
Copy link