1
- # LoRa Server setup
1
+ # ChirpStack stack setup (Ansible & Vagrant)
2
2
3
3
This repository provides an [ Ansible] ( https://www.ansible.com ) playbook to
4
- setup the [ LoRa Server] ( https://www.loraserver.io/ ) .
5
- project (including dependencies). With the included
6
- [ Vagrant] ( https://www.vagrant.com ) file, the LoRa Server can also be setup
7
- locally (e.g. on [ VirtualBox] ( https://www.virtualbox.org ) ).
4
+ setup the [ ChirpStack] ( https://www.chirpstack.io/ ) open-source LoRaWAN Network Server stack.
5
+ With the included [ Vagrant] ( https://www.vagrant.com ) file, the ChirpStack stack can also be setup
6
+ locally inside a VM (e.g. using [ VirtualBox] ( https://www.virtualbox.org ) ).
8
7
9
8
It will:
10
9
11
10
* Setup firewall rules (iptables)
12
11
* Setup Mosquitto (MQTT broker) + connection credentials
13
12
* Setup Redis
14
13
* Setup PostgreSQL + creation of roles and databases
15
- * Setup [ LoRa Gateway Bridge] ( https://www.loraserver .io/lora- gateway-bridge/ )
16
- * Setup [ LoRa Server] ( https://www.loraserver .io/loraserver / )
17
- * Setup [ LoRa App Server] ( https://www.loraserver .io/lora-app -server/ )
18
- * Setup [ LoRa Geo Server] ( https://www.loraserver .io/lora-geo -server/ )
14
+ * Setup [ ChirpStack Gateway Bridge] ( https://www.chirpstack .io/gateway-bridge/ )
15
+ * Setup [ ChirpStack Network Server] ( https://www.chirpstack .io/network-server / )
16
+ * Setup [ ChirpStack Application Server] ( https://www.chirpstack .io/application -server/ )
17
+ * Setup [ ChirpStack Geolocation Server] ( https://www.chirpstack .io/geolocation -server/ )
19
18
* Request a HTTPS certificate from [ Let's Encrypt] ( https://letsencrypt.org )
20
19
21
20
## Vagrant (local environment using VirtualBox)
22
21
23
22
The included ` Vagrantfile ` will setup a Debian Stretch (9.x) virtual
24
- machine with the latest LoRa Server components installed. It will also forward
23
+ machine with the latest ChirpStack stack components installed. It will also forward
25
24
the following ports to your host system:
26
25
27
- * ` 8080 ` : LoRa App Server UI and API
26
+ * ` 8080 ` : ChirpStack Application Server UI and API
28
27
* ` 1700 ` : UDP listener for the packet-forwarder data
29
28
* ` 1883 ` : Mosquitto MQTT
30
29
* ` 1884 ` : Mosquitto Websockets
@@ -34,15 +33,15 @@ automatically installed inside the Vagrant machine).
34
33
35
34
### Requirements
36
35
37
- When setting up the LoRa Server environment , make sure you have a recent
36
+ When setting up the ChirpStack stack , make sure you have a recent
38
37
version of [ Vagrant] ( https://www.vagrantup.com ) installed.
39
38
40
39
Also make sure you have a recent version of [ VirtualBox] ( https://www.virtualbox.org )
41
40
installed, including the [ VirtualBox Extension Pack] ( https://www.virtualbox.org/wiki/Downloads ) .
42
41
43
42
### Getting started
44
43
45
- 1 . Update ` roles/loraserver /templates/loraserver .toml ` so that the
44
+ 1 . Update ` roles/chirpstack-network-server /templates/chirpstack-network-server .toml ` so that the
46
45
` network_server.band.name ` matches the LoRaWAN band to use. Depending the
47
46
chosen band, you might also be interested in updating other network-server
48
47
settings listed under the ` network_server.network_settings ` section.
@@ -130,22 +129,22 @@ The Ansible playbook has been tested on the following images:
130
129
4. Copy the ` group_vars/single_server.example.yml` inside this repository to
131
130
` group_vars/single_server.yml` and change the settings where needed.
132
131
133
- 5. Update the LoRa Gateway Bridge, LoRa App Server and LoRa Server configuration
132
+ 5. Update the ChirpStack Gateway Bridge, ChirpStack Application Server and ChirpStack Network Server configuration
134
133
files under:
135
134
136
- * ` roles/lora -gateway-bridge/templates/lora -gateway-bridge.toml`
137
- * ` roles/lora-app -server/templates/lora-app -server.toml`
138
- * ` roles/loraserver /templates/loraserver .toml`
135
+ * ` roles/chirpstack -gateway-bridge/templates/chirpstack -gateway-bridge.toml`
136
+ * ` roles/chirpstack-application -server/templates/chirpstack-application -server.toml`
137
+ * ` roles/chirpstack-network-server /templates/chirpstack-network-server .toml`
139
138
140
139
See also the following links for more documentation:
141
140
142
- * https://www.loraserver .io/lora- gateway-bridge/
143
- * https://www.loraserver .io/loraserver /
144
- * https://www.loraserver .io/lora-app -server/
141
+ * https://www.chirpstack .io/gateway-bridge/
142
+ * https://www.chirpstack .io/network-server /
143
+ * https://www.chirpstack .io/application -server/
145
144
146
145
### Provisioning
147
146
148
- Run the following command from your machine to deploy LoRa Server to your
147
+ Run the following command from your machine to deploy the ChirpStack stack to your
149
148
target instance, to upgrade to the latest versions or to update the
150
149
configuration:
151
150
@@ -156,80 +155,3 @@ ansible-playbook -i inventory full_deploy.yml
156
155
After the playbook has been completed, the dashboard should be accessible from
157
156
http://yourdomain.com/. When you have enabled the LetsEncrypt TLS certificate
158
157
setup, this will automatically redirect to https://yourdomain.com/.
159
-
160
-
161
- ## Changelog (playbook changes)
162
-
163
- # ## 2019-08-23
164
-
165
- * Cleanup of tasks.
166
- * Configuration updates.
167
-
168
- # ## 2019-05-20
169
-
170
- * Updated to LoRa Server v3.
171
- * Updated configuration files + added examples for US915 band.
172
-
173
- # ## 2019-03-07
174
-
175
- * Added NGINX proxy in front of LoRa App Server.
176
- * Updated LetsEncrypt TLS request command to use NGINX plugin.
177
- * Added TLS configuration for Mosquitto.
178
-
179
- # ## 2018-10-30
180
-
181
- * LoRa App Server default configuration now uses http (no TLS certificate).
182
-
183
- # ## 2018-09-17
184
-
185
- * Updated playbook to support Ubuntu 18.04.x, 16.04.x and Debian Stretch (9.x).
186
- * ` postgresql` package is always installed from distribution repository.
187
- * ` mosquitto` package is always installed from distribution repository.
188
- * Added installation of LoRa Geo Server service.
189
-
190
- # ## 2018-07-30
191
-
192
- * Change to LoRa Server v2 apt repository.
193
-
194
- # ## 2018-04-22
195
-
196
- * Remove ` mosquitto-auth-plug` setup (which was causing a lot of issues)
197
- * Update configuration ` .yml` files under ` group_vars` and ` host_vars` (for Vagrant)
198
-
199
- # ## 2018-02-22
200
-
201
- * Include LoRa Gateway Bridge, LoRa App Server and LoRa Server configuration
202
- files as templates. See ** Configuration** .
203
-
204
- # ## 2017-12-16
205
-
206
- * ` auth_opt_aclquery` query of the mosquitto-auth-plug has been updated
207
- as application users have been deprecated.
208
-
209
- # ## 2017-07-26
210
-
211
- * ` GW_SERVER_JWT_SECRET` configuration option has been added to the example
212
- configuration file, which will be mandatory for
213
- [LoRa Server](https://docs.loraserver.io/) 0.20.0.
214
-
215
- * Port ` 8002` (used by [LoRa Gateway Config](https://docs.loraserver.io/lora-gateway-config/))
216
- has been added as public accessible port in the example configuration.
217
-
218
- * ` letsencrypt` cli has been changed to ` certbot` cli (as per installation
219
- instructions documented at https://certbot.eff.org).
220
-
221
- # ## 2017-06-20
222
-
223
- * Mosquitto authentication / authorization has been added (using
224
- [mosquitto-auth-plug](https://github.com/jpmens/mosquitto-auth-plug)).
225
- The ` loraserver_hosts.example.yml` has been updated with example
226
- configuration. Note that anonymous connections will be rejected. This allows
227
- users to connect to the MQTT broker using their LoRa App Server credentials.
228
-
229
- # ## 2017-03-28
230
-
231
- * PostgreSQL 9.6 will now be installed from the [PostgreSQL deb repository](https://www.postgresql.org/download/).
232
- In case you' re upgrading, make sure to migrate your data.
233
-
234
- * Mosquitto will be now be installed from either the Mosquitto PPA or
235
- the [Mosquitto deb repository](https://mosquitto.org/download/).
0 commit comments