# Token Exchange refused Error

**URL:** <https://www.thethingsnetwork.org/forum/t/token-exchange-refused-error/41643>\
**Category:** Uncategorized\
**Created:** [November 25, 2020, 4:30pm UTC](https://www.thethingsnetwork.org/forum/t/token-exchange-refused-error/41643 "2020-11-25T16:30:07Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![benolayinka](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/benolayinka/32/35845_2.png) [@benolayinka](https://www.thethingsnetwork.org/forum/u/benolayinka)\
**Post date:** [December 3, 2020, 12:33pm UTC](https://www.thethingsnetwork.org/forum/t/token-exchange-refused-error/41643/19 "2020-12-03T12:33:38Z")

</div>

> [@dsmith](#):
>
> First, download `docker-compose.yml` and `ttn-lw-stack-docker.yml` and configure them as normal. In my case, this meant replacing `thethings.example.com` with the static ip address of the machine hosting my docker containers. Then, uncomment the sections about using custom certificates.
> 
> At the bottom of `docker-compose.yml` :  
> ![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/f/d/fdee35c8e4774ec7f9a64e30690d42fe7643b131.png)
> 
> Near the top of `ttn-lw-stack-docker.yml` (don’t forget to comment out the let’s encrypt section):  
> ![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/3/7/3756d49aeb883efa1eb2a702bc6018a3a5de554e.png)

Thanks for pointing this out - I’ll add a note in the documentation

---

_[View the full topic](https://www.thethingsnetwork.org/forum/t/token-exchange-refused-error/41643)._
