@@ -11,14 +11,14 @@ import (
1111)
1212
1313const configTemplate = `[general]
14- # Log level
15- #
16- # debug=5, info=4, warning=3, error=2, fatal=1, panic=0
17- log_level={{ .General.LogLevel }}
14+ # Log level
15+ #
16+ # debug=5, info=4, warning=3, error=2, fatal=1, panic=0
17+ log_level={{ .General.LogLevel }}
1818
1919
20- # Application Server configuration.
21- [application_server ]
20+ # ChirpStack configuration.
21+ [chirpstack ]
2222
2323 # API configuration.
2424 #
@@ -27,74 +27,62 @@ log_level={{ .General.LogLevel }}
2727 # * Gateways
2828 # * Application
2929 # * Devices
30- [application_server.api]
31-
32- # JWT token.
33- #
34- # The JWT token to connect to the ChirpStack Application Server API. This
35- # token can be generated using the login API endpoint. In the near-future
36- # it will be possible to generate these tokens within the web-interface:
37- # https://github.com/brocaar/chirpstack-application-server/pull/421
38- jwt_token="{{ .ApplicationServer.API.JWTToken }}"
30+ [chirpstack.api]
3931
40- # Server.
41- #
42- # This must point to the external API server of the ChirpStack Application
43- # Server. When the server is running on the same machine, keep this to the
44- # default value.
45- server="{{ .ApplicationServer.API.Server }}"
32+ # API key.
33+ #
34+ # The API key can be obtained through the ChirpStack web-interface.
35+ api_key="{{ .ChirpStack.API.APIKey }}"
4636
47- # Insecure .
48- #
49- # Set this to true when the endpoint is not using TLS .
50- insecure= {{ .ApplicationServer .API.Insecure }}
37+ # Server .
38+ #
39+ # This must point to the ChirpStack API interface .
40+ server=" {{ .ChirpStack .API.Server }}"
5141
42+ # Insecure.
43+ #
44+ # Set this to true when the endpoint is not using TLS.
45+ insecure={{ .ChirpStack.API.Insecure }}
5246
53- # MQTT integration configuration.
54- #
55- # This integration is used for counting the number of uplinks that are
56- # published by the ChirpStack Application Server integration.
57- [application_server.integration.mqtt]
5847
59- # MQTT server.
60- server="{{ .ApplicationServer.Integration.MQTT.Server }}"
48+ # MQTT integration configuration.
49+ #
50+ # This integration is used for counting the number of uplinks that are
51+ # published by the ChirpStack MQTT integration.
52+ [chirpstack.integration.mqtt]
6153
62- # Username .
63- username ="{{ .ApplicationServer .Integration.MQTT.Username }}"
54+ # MQTT server .
55+ server ="{{ .ChirpStack .Integration.MQTT.Server }}"
6456
65- # Password .
66- password ="{{ .ApplicationServer .Integration.MQTT.Password }}"
57+ # Username .
58+ username ="{{ .ChirpStack .Integration.MQTT.Username }}"
6759
60+ # Password.
61+ password="{{ .ChirpStack.Integration.MQTT.Password }}"
6862
69- # Network Server configuration.
70- #
71- # This configuration is used to simulate LoRa gateways using the MQTT gateway
72- # backend.
73- [network_server]
7463
7564 # MQTT gateway backend.
76- [network_server .gateway.backend.mqtt]
65+ [chirpstack .gateway.backend.mqtt]
7766
78- # MQTT server.
79- server="{{ .NetworkServer.Gateway.Backend.MQTT.Server }}"
67+ # MQTT server.
68+ server="{{ .NetworkServer.Gateway.Backend.MQTT.Server }}"
8069
81- # Username.
82- username="{{ .NetworkServer.Gateway.Backend.MQTT.Username }}"
70+ # Username.
71+ username="{{ .NetworkServer.Gateway.Backend.MQTT.Username }}"
8372
84- # Password.
85- password="{{ .NetworkServer.Gateway.Backend.MQTT.Password }}"
73+ # Password.
74+ password="{{ .NetworkServer.Gateway.Backend.MQTT.Password }}"
8675
8776
8877# Simulator configuration.
8978#
9079# Example:
9180# [[simulator]]
9281#
93- # # Service-profile ID.
82+ # # Tenant ID.
9483# #
95- # # It is recommended to create a new organization with a new service-profile
96- # # in the ChirpStack Application Server.
97- # service_profile_id="1f32476e-a112-4f00-bcc7-4aab4bfefa1d"
84+ # # It is recommended to create a new tenant in ChirpStack.
85+ # tenant_id="1f32476e-a112-4f00-bcc7-4aab4bfefa1d"
9886#
9987# # Duration.
10088# #
@@ -136,10 +124,10 @@ log_level={{ .General.LogLevel }}
136124# [simulator.gateway]
137125#
138126# # Event topic template.
139- # event_topic_template="{{ "gateway/{{ .GatewayID }}/event/{{ .Event }}" }}"
127+ # event_topic_template="eu868/ {{ "gateway/{{ .GatewayID }}/event/{{ .Event }}" }}"
140128#
141129# # Command topic template.
142- # command_topic_template="{{ "gateway/{{ .GatewayID }}/command/{{ .Command }}" }}"
130+ # command_topic_template="eu868/ {{ "gateway/{{ .GatewayID }}/command/{{ .Command }}" }}"
143131#
144132# # Min number of receiving gateways.
145133# min_count=3
0 commit comments