I followed the getting started instructions a few times actually to make sure I didn’t leave anything out and each attempt leaves me with the same result - Token-refused error.
I think the main question is why the instructions, including the excitingly simple and relatively new video here: Install The Things Stack LoRaWAN Network Server in 6 minutes using Docker - YouTube
seem to always result in a bunch of localhost artifacts after installation. I know several have asked about this, but it appears this is the root of the problem:
Is there a way to ensure that localhost settings are not provisioned during the getting started guide? Or am I just completely overlooking something?
For what its worth, I’m running a VM on digitalocean with a custom domain using the acme Letsencrypt method per the instructions.
root@tts:~# ttn-lw-stack config | grep localhost
--as.mqtt.public-address="localhost:1883"
--as.mqtt.public-tls-address="localhost:8883"
--as.webhooks.downlink.public-address="http://localhost:1885/api/v3"
--console.oauth.authorize-url="http://localhost:1885/oauth/authorize"
--console.oauth.logout-url="http://localhost:1885/oauth/logout"
--console.oauth.token-url="http://localhost:1885/oauth/token"
--console.ui.as.base-url="http://localhost:1885/api/v3"
--console.ui.canonical-url="http://localhost:1885/console"
--console.ui.edtc.base-url="http://localhost:1885/api/v3"
--console.ui.gcs.base-url="http://localhost:1885/api/v3"
--console.ui.gs.base-url="http://localhost:1885/api/v3"
--console.ui.is.base-url="http://localhost:1885/api/v3"
--console.ui.js.base-url="http://localhost:1885/api/v3"
--console.ui.ns.base-url="http://localhost:1885/api/v3"
--console.ui.qrg.base-url="http://localhost:1885/api/v3"
--gcs.basic-station.default.lns-uri="wss://localhost:8887"
--gcs.the-things-gateway.default.mqtt-server="mqtts://localhost:8881"
--gs.mqtt-v2.public-address="localhost:1881"
--gs.mqtt-v2.public-tls-address="localhost:8881"
--gs.mqtt.public-address="localhost:1882"
--gs.mqtt.public-tls-address="localhost:8882"
--is.database-uri="postgresql://root@localhost:26257/ttn_lorawan_dev?sslmode=disable"
--is.email.network.console-url="http://localhost:1885/console"
--is.email.network.identity-server-url="http://localhost:1885/oauth"
--is.oauth.ui.canonical-url="http://localhost:1885/oauth"
--is.oauth.ui.is.base-url="http://localhost:1885/api/v3"
--redis.address="localhost:6379"