mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-08 03:44:19 +00:00
Update configuration files with env. variables.
This makes it possible to use the config examples with Docker Compose (where every service has its own hostname) and to use it for packaging (where by default the services are running under localhost).
This commit is contained in:
parent
df155413d8
commit
7309a35a3b
@ -34,7 +34,7 @@
|
||||
command_topic="as923/gateway/{{ gateway_id }}/command/{{ command }}"
|
||||
|
||||
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
|
||||
server="tcp://mosquitto:1883"
|
||||
server="tcp://$MQTT_BROKER_HOST:1883"
|
||||
|
||||
# Connect with the given username (optional)
|
||||
username=""
|
||||
|
@ -34,7 +34,7 @@
|
||||
command_topic="as923_2/gateway/{{ gateway_id }}/command/{{ command }}"
|
||||
|
||||
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
|
||||
server="tcp://mosquitto:1883"
|
||||
server="tcp://$MQTT_BROKER_HOST:1883"
|
||||
|
||||
# Connect with the given username (optional)
|
||||
username=""
|
||||
|
@ -34,7 +34,7 @@
|
||||
command_topic="as923_3/gateway/{{ gateway_id }}/command/{{ command }}"
|
||||
|
||||
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
|
||||
server="tcp://mosquitto:1883"
|
||||
server="tcp://$MQTT_BROKER_HOST:1883"
|
||||
|
||||
# Connect with the given username (optional)
|
||||
username=""
|
||||
|
@ -34,7 +34,7 @@
|
||||
command_topic="as923_4/gateway/{{ gateway_id }}/command/{{ command }}"
|
||||
|
||||
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
|
||||
server="tcp://mosquitto:1883"
|
||||
server="tcp://$MQTT_BROKER_HOST:1883"
|
||||
|
||||
# Connect with the given username (optional)
|
||||
username=""
|
||||
|
@ -34,7 +34,7 @@
|
||||
command_topic="au915_0/gateway/{{ gateway_id }}/command/{{ command }}"
|
||||
|
||||
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
|
||||
server="tcp://mosquitto:1883"
|
||||
server="tcp://$MQTT_BROKER_HOST:1883"
|
||||
|
||||
# Connect with the given username (optional)
|
||||
username=""
|
||||
|
@ -34,7 +34,7 @@
|
||||
command_topic="au915_1/gateway/{{ gateway_id }}/command/{{ command }}"
|
||||
|
||||
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
|
||||
server="tcp://mosquitto:1883"
|
||||
server="tcp://$MQTT_BROKER_HOST:1883"
|
||||
|
||||
# Connect with the given username (optional)
|
||||
username=""
|
||||
|
@ -34,7 +34,7 @@
|
||||
command_topic="au915_2/gateway/{{ gateway_id }}/command/{{ command }}"
|
||||
|
||||
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
|
||||
server="tcp://mosquitto:1883"
|
||||
server="tcp://$MQTT_BROKER_HOST:1883"
|
||||
|
||||
# Connect with the given username (optional)
|
||||
username=""
|
||||
|
@ -34,7 +34,7 @@
|
||||
command_topic="au915_3/gateway/{{ gateway_id }}/command/{{ command }}"
|
||||
|
||||
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
|
||||
server="tcp://mosquitto:1883"
|
||||
server="tcp://$MQTT_BROKER_HOST:1883"
|
||||
|
||||
# Connect with the given username (optional)
|
||||
username=""
|
||||
|
@ -34,7 +34,7 @@
|
||||
command_topic="au915_4/gateway/{{ gateway_id }}/command/{{ command }}"
|
||||
|
||||
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
|
||||
server="tcp://mosquitto:1883"
|
||||
server="tcp://$MQTT_BROKER_HOST:1883"
|
||||
|
||||
# Connect with the given username (optional)
|
||||
username=""
|
||||
|
@ -34,7 +34,7 @@
|
||||
command_topic="au915_5/gateway/{{ gateway_id }}/command/{{ command }}"
|
||||
|
||||
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
|
||||
server="tcp://mosquitto:1883"
|
||||
server="tcp://$MQTT_BROKER_HOST:1883"
|
||||
|
||||
# Connect with the given username (optional)
|
||||
username=""
|
||||
|
@ -34,7 +34,7 @@
|
||||
command_topic="au915_6/gateway/{{ gateway_id }}/command/{{ command }}"
|
||||
|
||||
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
|
||||
server="tcp://mosquitto:1883"
|
||||
server="tcp://$MQTT_BROKER_HOST:1883"
|
||||
|
||||
# Connect with the given username (optional)
|
||||
username=""
|
||||
|
@ -34,7 +34,7 @@
|
||||
command_topic="au915_7/gateway/{{ gateway_id }}/command/{{ command }}"
|
||||
|
||||
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
|
||||
server="tcp://mosquitto:1883"
|
||||
server="tcp://$MQTT_BROKER_HOST:1883"
|
||||
|
||||
# Connect with the given username (optional)
|
||||
username=""
|
||||
|
@ -19,7 +19,7 @@
|
||||
# * require - Always SSL (skip verification)
|
||||
# * verify-ca - Always SSL (verify that the certificate presented by the server was signed by a trusted CA)
|
||||
# * 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)
|
||||
dsn="postgres://chirpstack:chirpstack@postgres/chirpstack?sslmode=disable"
|
||||
dsn="postgres://chirpstack:chirpstack@$POSTGRESQL_HOST/chirpstack?sslmode=disable"
|
||||
|
||||
# Max open connections.
|
||||
#
|
||||
@ -41,7 +41,7 @@
|
||||
#
|
||||
# Set multiple addresses when connecting to a cluster.
|
||||
servers=[
|
||||
"redis://redis/",
|
||||
"redis://$REDIS_HOST/",
|
||||
]
|
||||
|
||||
# TLS enabled.
|
||||
@ -99,17 +99,17 @@
|
||||
|
||||
[gateway]
|
||||
client_cert_lifetime="365days"
|
||||
ca_cert="configuration/certs/ca.crt"
|
||||
ca_key="configuration/certs/ca.key"
|
||||
ca_cert="configuration/certs/ca.pem"
|
||||
ca_key="configuration/certs/ca-key.pem"
|
||||
|
||||
[integration]
|
||||
enabled=["mqtt"]
|
||||
|
||||
[integration.mqtt]
|
||||
server="tcp://mosquitto:1883/"
|
||||
server="tcp://$MQTT_BROKER_HOST:1883/"
|
||||
json=true
|
||||
|
||||
[integration.mqtt.client]
|
||||
client_cert_lifetime="365days"
|
||||
ca_cert="configuration/certs/ca.crt"
|
||||
ca_key="configuration/certs/ca.key"
|
||||
ca_cert="configuration/certs/ca.pem"
|
||||
ca_key="configuration/certs/ca-key.pem"
|
||||
|
@ -34,7 +34,7 @@
|
||||
command_topic="cn779/gateway/{{ gateway_id }}/command/{{ command }}"
|
||||
|
||||
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
|
||||
server="tcp://mosquitto:1883"
|
||||
server="tcp://$MQTT_BROKER_HOST:1883"
|
||||
|
||||
# Connect with the given username (optional)
|
||||
username=""
|
||||
|
@ -34,7 +34,7 @@
|
||||
command_topic="eu433/gateway/{{ gateway_id }}/command/{{ command }}"
|
||||
|
||||
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
|
||||
server="tcp://mosquitto:1883"
|
||||
server="tcp://$MQTT_BROKER_HOST:1883"
|
||||
|
||||
# Connect with the given username (optional)
|
||||
username=""
|
||||
|
@ -34,7 +34,7 @@
|
||||
command_topic="eu868/gateway/{{ gateway_id }}/command/{{ command }}"
|
||||
|
||||
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
|
||||
server="tcp://mosquitto:1883"
|
||||
server="tcp://$MQTT_BROKER_HOST:1883"
|
||||
|
||||
# Connect with the given username (optional)
|
||||
username=""
|
||||
|
@ -34,7 +34,7 @@
|
||||
command_topic="in865/gateway/{{ gateway_id }}/command/{{ command }}"
|
||||
|
||||
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
|
||||
server="tcp://mosquitto:1883"
|
||||
server="tcp://$MQTT_BROKER_HOST:1883"
|
||||
|
||||
# Connect with the given username (optional)
|
||||
username=""
|
||||
|
@ -34,7 +34,7 @@
|
||||
command_topic="ism2400/gateway/{{ gateway_id }}/command/{{ command }}"
|
||||
|
||||
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
|
||||
server="tcp://mosquitto:1883"
|
||||
server="tcp://$MQTT_BROKER_HOST:1883"
|
||||
|
||||
# Connect with the given username (optional)
|
||||
username=""
|
||||
|
@ -34,7 +34,7 @@
|
||||
command_topic="kr920/gateway/{{ gateway_id }}/command/{{ command }}"
|
||||
|
||||
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
|
||||
server="tcp://mosquitto:1883"
|
||||
server="tcp://$MQTT_BROKER_HOST:1883"
|
||||
|
||||
# Connect with the given username (optional)
|
||||
username=""
|
||||
|
@ -34,7 +34,7 @@
|
||||
command_topic="ru864/gateway/{{ gateway_id }}/command/{{ command }}"
|
||||
|
||||
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
|
||||
server="tcp://mosquitto:1883"
|
||||
server="tcp://$MQTT_BROKER_HOST:1883"
|
||||
|
||||
# Connect with the given username (optional)
|
||||
username=""
|
||||
|
@ -34,7 +34,7 @@
|
||||
command_topic="us915_0/gateway/{{ gateway_id }}/command/{{ command }}"
|
||||
|
||||
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
|
||||
server="tcp://mosquitto:1883"
|
||||
server="tcp://$MQTT_BROKER_HOST:1883"
|
||||
|
||||
# Connect with the given username (optional)
|
||||
username=""
|
||||
|
@ -34,7 +34,7 @@
|
||||
command_topic="us915_1/gateway/{{ gateway_id }}/command/{{ command }}"
|
||||
|
||||
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
|
||||
server="tcp://mosquitto:1883"
|
||||
server="tcp://$MQTT_BROKER_HOST:1883"
|
||||
|
||||
# Connect with the given username (optional)
|
||||
username=""
|
||||
|
@ -34,7 +34,7 @@
|
||||
command_topic="us915_2/gateway/{{ gateway_id }}/command/{{ command }}"
|
||||
|
||||
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
|
||||
server="tcp://mosquitto:1883"
|
||||
server="tcp://$MQTT_BROKER_HOST:1883"
|
||||
|
||||
# Connect with the given username (optional)
|
||||
username=""
|
||||
|
@ -34,7 +34,7 @@
|
||||
command_topic="us915_3/gateway/{{ gateway_id }}/command/{{ command }}"
|
||||
|
||||
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
|
||||
server="tcp://mosquitto:1883"
|
||||
server="tcp://$MQTT_BROKER_HOST:1883"
|
||||
|
||||
# Connect with the given username (optional)
|
||||
username=""
|
||||
|
@ -34,7 +34,7 @@
|
||||
command_topic="us915_4/gateway/{{ gateway_id }}/command/{{ command }}"
|
||||
|
||||
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
|
||||
server="tcp://mosquitto:1883"
|
||||
server="tcp://$MQTT_BROKER_HOST:1883"
|
||||
|
||||
# Connect with the given username (optional)
|
||||
username=""
|
||||
|
@ -34,7 +34,7 @@
|
||||
command_topic="us915_5/gateway/{{ gateway_id }}/command/{{ command }}"
|
||||
|
||||
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
|
||||
server="tcp://mosquitto:1883"
|
||||
server="tcp://$MQTT_BROKER_HOST:1883"
|
||||
|
||||
# Connect with the given username (optional)
|
||||
username=""
|
||||
|
@ -34,7 +34,7 @@
|
||||
command_topic="us915_6/gateway/{{ gateway_id }}/command/{{ command }}"
|
||||
|
||||
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
|
||||
server="tcp://mosquitto:1883"
|
||||
server="tcp://$MQTT_BROKER_HOST:1883"
|
||||
|
||||
# Connect with the given username (optional)
|
||||
username=""
|
||||
|
@ -34,7 +34,7 @@
|
||||
command_topic="us915_7/gateway/{{ gateway_id }}/command/{{ command }}"
|
||||
|
||||
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
|
||||
server="tcp://mosquitto:1883"
|
||||
server="tcp://$MQTT_BROKER_HOST:1883"
|
||||
|
||||
# Connect with the given username (optional)
|
||||
username=""
|
||||
|
@ -9,6 +9,9 @@ services:
|
||||
- mosquitto
|
||||
environment:
|
||||
- DATABASE_URL=postgres://chirpstack_test:chirpstack_test@postgres/chirpstack_test?sslmode=disable
|
||||
- REDIS_HOST=redis
|
||||
- POSTGRESQL_HOST=postgres
|
||||
- MQTT_BROKER_HOST=mosquitto
|
||||
ports:
|
||||
- "8080:8080"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user