Skip to content

Commit b26c490

Browse files
PR changes
1 parent ac62965 commit b26c490

File tree

9 files changed

+13
-20
lines changed

9 files changed

+13
-20
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Solution:
7878
5. restart the application.
7979

8080
## Adding an ADR Algorithm
81-
When the ADR Algorithm has been tested, and is ready for deployment, the ADR Algorithm has to be added to chirpstack.
81+
When the ADR Algorithm has been tested, and is ready for deployment, the ADR Algorithm has to be added to chirpstack. It is mandatory that the custom adr module is writtin in js.
8282

8383
### Adding the Plugin to Chirpstack
8484
If the default `docker-compose.yml` file is used, the folder `./configuration/chirpstack` is already copied to `/etc/chirpstack` in the docker container.

configuration/chirpstack/chirpstack.toml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,13 @@
22
dsn="postgres://chirpstack:chirpstack@postgresCsV4/chirpstack?sslmode=disable"
33

44
[redis]
5-
servers=[
6-
"redis://redis:6379",
7-
]
5+
servers=["redis://redis:6379"]
86

97
[network]
108
net_id="000000"
119
adr_plugins=["/etc/chirpstack/adr-modules/sensade-adr-mod/sensade-adr.js"]
1210

13-
enabled_regions=[
14-
"eu868",
15-
]
11+
enabled_regions=["eu868"]
1612

1713
[api]
1814
bind="0.0.0.0:8080"
File renamed without changes.

configuration/postgresCsV4/initdb/001-init-chirpstack.sh renamed to configuration/postgresChirpstackV4/initdb/001-init-chirpstack.sh

File renamed without changes.

configuration/postgresCsV4/initdb/002-chirpstack_extensions.sh renamed to configuration/postgresChirpstackV4/initdb/002-chirpstack_extensions.sh

File renamed without changes.

docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ services:
3939
- ./configuration/postgresql/initdb:/docker-entrypoint-initdb.d
4040
- postgresqldata:/var/lib/postgresql/data
4141

42-
postgresCsV4:
42+
postgresChirpstackV4:
4343
image: postgres:bookworm
4444
volumes:
45-
- ./configuration/postgresCsV4/initdb:/docker-entrypoint-initdb.d
46-
- postgresqldata:/var/lib/postgresCsV4/data
45+
- ./configuration/postgresChirpstackV4/initdb:/docker-entrypoint-initdb.d
46+
- postgresqldata:/var/lib/postgresChirpstackV4/data
4747
environment:
4848
- POSTGRES_PASSWORD=root
4949
ports:
@@ -107,7 +107,7 @@ services:
107107
KAFKA_PORT: 9092
108108
CS_MQTT_HOSTNAME: mosquitto
109109
CS_MQTT_PORT: 1883
110-
CHIRPSTACK_HOSTNAME: "localhost" # Change this to the chirpstack hostname
110+
CHIRPSTACK_HOSTNAME: "chirpstack-svc" # Change this to the chirpstack hostname
111111
CHIRPSTACK_PORT: 8080
112112
LOG_LEVEL: debug
113113
EMAIL_PORT: 587

helm/charts/chirpstack/templates/configmap.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,15 @@ metadata:
55
data:
66
chirpstack.toml: |
77
[postgresql]
8-
dsn="postgres://chirpstack:chirpstack@postgresCsV4/chirpstack?sslmode=disable"
8+
dsn="postgres://chirpstack:chirpstack@postgresChirpstackV4/chirpstack?sslmode=disable"
99
1010
[redis]
11-
servers=[
12-
"redis://redis:6379",
13-
]
11+
servers=["redis://redis:6379"]
1412
1513
[network]
1614
net_id="000000"
1715
adr_plugins=["/etc/chirpstack/adr-modules/sensade-adr-mod/sensade-adr.js"]
18-
enabled_regions=[
19-
"eu868",
20-
]
16+
enabled_regions=["eu868"]
2117
2218
[api]
2319
bind="0.0.0.0:8080"

helm/charts/chirpstack/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ spec:
2323
labels:
2424
app: {{ $.Chart.Name }}
2525
version: "{{ $.Chart.Name }}-{{ .Values.DOCKER_IMAGE_TAG }}"
26+
annotations:
2627
sidecar.istio.io/inject: "false"
2728
spec:
2829
containers:

helm/charts/os2iot-backend/templates/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ spec:
5656
- name: KAFKA_PORT
5757
value: '9092'
5858
- name: CHIRPSTACK_HOSTNAME
59-
value: localhost
59+
value: chirpstack-svc
6060
- name: CHIRPSTACK_PORT
6161
value: 8084
6262
- name: CS_MQTT_HOSTNAME
6363
value: mosquitto-svc
6464
- name: CS_MQTT_PORT
6565
value: '1883'
6666
- name: BACKEND_BASEURL
67-
value: 'http://localhost:3000'
67+
value: 'https://test-os2iot-backend.os2iot.dk'
6868
- name: KOMBIT_CERTIFICATEPRIVATEKEY
6969
value: "{{ .Values.KOMBIT_CERTIFICATEPRIVATEKEY }}"
7070
- name: KOMBIT_ENTRYPOINT

0 commit comments

Comments
 (0)