TheThingsIndustries / lorawan-stack-docs

Documentation for The Things Stack
Apache License 2.0
32 stars 65 forks source link

Minor changes required in The Things Stack configuration files #946

Closed ymgupta closed 1 year ago

ymgupta commented 2 years ago

Summary

We have identified a few changes in The Things Stack configuration files docker-compose.yml and ttn-lw-stack-docker.yml

  1. Update the NOC store URI in docker-compose.yml
  2. Update the NOC component configuration in ttn-lw-stack-docker.yml

Why do we need this ?

...

What is already there? What do you see now?

NOC component configuration in docker-compose.yml and ttn-lw-stack-docker.yml.

What is missing? What do you want to see?

...

How do you propose to document this?

  1. Update the NOC store URI in docker-compose.yml.

In the docker-compose.yml file, the NOC store database URI is configured with timescaledb instead of postgres. Please update the TTN_LW_NOC_STORE_DATABASE_URI configuration as expected configuration in the docker-compose.yml file.

Current Configuration:

TTN_LW_NOC_STORE_DATABASE_URI: postgres://root:root@timescaledb:5432/ttn_lorawan?sslmode=disable

Expected configuration:

TTN_LW_NOC_STORE_DATABASE_URI: postgres://root:root@postgres:5432/ttn_lorawan?sslmode=disable
  1. Update the NOC component configuration in ttn-lw-stack-docker.yml.

The noc.store.database-uri in the ttn-lw-stack-docker.yml as current configuration mentioned below. So, please update as per the expected configuration in the ttn-lw-stack-docker.yml file.

Current Configuration

store:
   database-uri: "postgres://root:root@postgres:5432/ttn_lorawan_dev?sslmode=disable"

Expected Configuration

store:
   database-uri: "postgres://root:root@postgres:5432/ttn_lorawan?sslmode=disable"
  1. The noc.ui.canonical-url is misconfigured in the ttn-lw-stack-docker.yml file. Please update as expected configuration in the configuration file.

Current configuration:

noc:
  ui:
   canonical-url: "https://thethings.example.com/console"

Expected configuration:

noc:
  ui:
   canonical-url: "https://thethings.example.com/noc"

Can you do this yourself and submit a Pull Request?

No, @nejraselimovic

ymgupta commented 1 year ago

Hi @nejraselimovic,

The Things Stack Enterprise users are reporting issues with NOC initialization. The issue is due to a mismatch of the NOC database URI configuration in the docker-compose.yml file. Could you please prioritize this documentation request?

ymgupta commented 1 year ago

In addition to the above changes, please add the below configuration.

As per the new end device registration flow in 3.22.0, The Things Stack Console should require the endpoint for the device claiming server. Please add the following lines to the configuration in the console.ui section of the ttn-lw-stack-docker.yml file.

dcs:
    base-url: 'https://thethings.example.com/api/v3'

Ref: https://github.com/TheThingsIndustries/lorawan-stack-support/issues/873#issuecomment-1291801820

NicolasMrad commented 1 year ago

https://github.com/TheThingsNetwork/lorawan-stack/issues/5948

NicolasMrad commented 1 year ago

@nejraselimovic can you please put this on high priority

nejraselimovic commented 1 year ago

@nejraselimovic can you please put this on high priority

Sure, will handle this today