Advertisement
Guest User

config

a guest
Mar 19th, 2022
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.37 KB | None | 0 0
  1. # This configuration configures ChirpStack Network Server for the EU868 band using a MQTT
  2. # broker to communicate with the gateways. Many options and defaults have been
  3. # omitted for simplicity.
  4. #
  5. # For other bands, see the ./examples/ sub-directory.
  6. #
  7. # See https://www.chirpstack.io/network-server/install/config/ for a full
  8. # configuration example and documentation.
  9.  
  10.  
  11. # PostgreSQL settings.
  12. #
  13. # Please note that PostgreSQL 9.5+ is required.
  14. [postgresql]
  15. # PostgreSQL dsn (e.g.: postgres://user:password@hostname/database?sslmode=disable).
  16. #
  17. # Besides using an URL (e.g. 'postgres://user:password@hostname/database?sslmode=disable')
  18. # it is also possible to use the following format:
  19. # 'user=chirpstack_ns dbname=chirpstack_ns sslmode=disable'.
  20. #
  21. # The following connection parameters are supported:
  22. #
  23. # * dbname - The name of the database to connect to
  24. # * user - The user to sign in as
  25. # * password - The user's password
  26. # * host - The host to connect to. Values that start with / are for unix domain sockets. (default is localhost)
  27. # * port - The port to bind to. (default is 5432)
  28. # * sslmode - Whether or not to use SSL (default is require, this is not the default for libpq)
  29. # * fallback_application_name - An application_name to fall back to if one isn't provided.
  30. # * connect_timeout - Maximum wait for connection, in seconds. Zero or not specified means wait indefinitely.
  31. # * sslcert - Cert file location. The file must contain PEM encoded data.
  32. # * sslkey - Key file location. The file must contain PEM encoded data.
  33. # * sslrootcert - The location of the root certificate file. The file must contain PEM encoded data.
  34. #
  35. # Valid values for sslmode are:
  36. #
  37. # * disable - No SSL
  38. # * require - Always SSL (skip verification)
  39. # * verify-ca - Always SSL (verify that the certificate presented by the server was signed by a trusted CA)
  40. # * verify-full - Always SSL (verify that the certification presented by the server was signed by a trusted CA and the server host name matches the one in the certificate)
  41. dsn="postgres://chirpstack_ns:dbpassword@localhost/chirpstack_ns?sslmode=disable"
  42.  
  43.  
  44. # Redis settings
  45. #
  46. # Please note that Redis 2.6.0+ is required.
  47. [redis]
  48. # Redis url (e.g. redis://user:password@hostname/0)
  49. #
  50. # For more information about the Redis URL format, see:
  51. # https://www.iana.org/assignments/uri-schemes/prov/redis
  52. url="redis://localhost:6379"
  53.  
  54.  
  55. # Network-server settings.
  56. [network_server]
  57. # Network identifier (NetID, 3 bytes) encoded as HEX (e.g. 010203)
  58. net_id="000000"
  59.  
  60.  
  61. # LoRaWAN regional band configuration.
  62. #
  63. # Note that you might want to consult the LoRaWAN Regional Parameters
  64. # specification for valid values that apply to your region.
  65. # See: https://www.lora-alliance.org/lorawan-for-developers
  66. [network_server.band]
  67. name="EU868"
  68.  
  69.  
  70. # LoRaWAN network related settings.
  71. [network_server.network_settings]
  72.  
  73. # Extra channel configuration.
  74. #
  75. # Use this for LoRaWAN regions where it is possible to extend the by default
  76. # available channels with additional channels (e.g. the EU band).
  77. # The first 5 channels will be configured as part of the OTAA join-response
  78. # (using the CFList field).
  79. # The other channels (or channel / data-rate changes) will be (re)configured
  80. # using the NewChannelReq mac-command.
  81. #
  82. [[network_server.network_settings.extra_channels]]
  83. frequency=867100000
  84. min_dr=0
  85. max_dr=5
  86.  
  87. [[network_server.network_settings.extra_channels]]
  88. frequency=867300000
  89. min_dr=0
  90. max_dr=5
  91.  
  92. [[network_server.network_settings.extra_channels]]
  93. frequency=867500000
  94. min_dr=0
  95. max_dr=5
  96.  
  97. [[network_server.network_settings.extra_channels]]
  98. frequency=867700000
  99. min_dr=0
  100. max_dr=5
  101.  
  102. [[network_server.network_settings.extra_channels]]
  103. frequency=867900000
  104. min_dr=0
  105. max_dr=5
  106.  
  107.  
  108. # Class B settings
  109. [network_server.network_settings.class_b]
  110. # Ping-slot data-rate.
  111. ping_slot_dr=0
  112.  
  113. # Ping-slot frequency (Hz)
  114. #
  115. # Set this to 0 to use the default frequency plan for the configured region
  116. # (which could be frequency hopping).
  117. ping_slot_frequency=0
  118.  
  119.  
  120. # Network-server API
  121. #
  122. # This is the network-server API that is used by ChirpStack Application Server or other
  123. # custom components interacting with ChirpStack Network Server.
  124. [network_server.api]
  125. # ip:port to bind the api server
  126. bind="0.0.0.0:8000"
  127.  
  128.  
  129. # Backend defines the gateway backend settings.
  130. #
  131. # The gateway backend handles the communication with the gateway(s) part of
  132. # the LoRaWAN network.
  133. [network_server.gateway.backend]
  134. # Backend
  135. type="mqtt"
  136.  
  137.  
  138. # MQTT gateway backend settings.
  139. #
  140. # This is the backend communicating with the LoRa gateways over a MQTT broker.
  141. [network_server.gateway.backend.mqtt]
  142. # MQTT topic templates for the different MQTT topics.
  143. #
  144. # The meaning of these topics are documented at:
  145. # https://www.chirpstack.io/gateway-bridge/
  146. #
  147. # The default values match the default expected configuration of the
  148. # ChirpStack Gateway Bridge MQTT backend. Therefore only change these values when
  149. # absolutely needed.
  150.  
  151. # Event topic template.
  152. event_topic="gateway/+/event/+"
  153.  
  154. # Command topic template.
  155. #
  156. # Use:
  157. # * "{{ .GatewayID }}" as an substitution for the LoRa gateway ID
  158. # * "{{ .CommandType }}" as an substitution for the command type
  159. command_topic_template="gateway/{{ .GatewayID }}/command/{{ .CommandType }}"
  160.  
  161. # MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
  162. server="tcp://localhost:1883"
  163.  
  164. # Connect with the given username (optional)
  165. username=""
  166.  
  167. # Connect with the given password (optional)
  168. password=""
  169.  
  170.  
  171. # Metrics collection settings.
  172. [metrics]
  173. # Timezone
  174. #
  175. # The timezone is used for correctly aggregating the metrics (e.g. per hour,
  176. # day or month).
  177. # Example: "Europe/Amsterdam" or "Local" for the the system's local time zone.
  178. timezone="Local"
  179.  
  180.  
  181. # Join-server settings.
  182. [join_server]
  183.  
  184. # Default join-server settings.
  185. #
  186. # This join-server will be used when resolving the JoinEUI is set to false
  187. # or as a fallback when resolving the JoinEUI fails.
  188. [join_server.default]
  189. # hostname:port of the default join-server
  190. #
  191. # This API is provided by ChirpStack Application Server.
  192. server="http://localhost:8003"
  193.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement