Hi, I'm trying to get production setup working for self hosted growthbook instance. I have Kong as gateway in front of growthbook app and api instances.
docker-compose.yml config
growthbook:
environment:
- MONGODB_URI=<mongodb://root:xxx@mongo:27017/>
- APP_ORIGIN=<https://growthbook.example.com>
- API_HOST=<https://growthbook-api.example.com>
- NODE_ENV=production
- JWT_SECRET=qwertyuiopasdfghjklzxcvbnmertyui
- ENCRYPTION_KEY=qwertyuiosdfghnjmxcvbnmdfghj
GET <https://growthbook-api.example.com/>
Response
{"name":"GrowthBook API","production":true,"api_host":"<http://growthbook-api.example.com:3100>","app_origin":"<https://growthbook.example.com>","config_source":"db","email_enabled":false,"build":{"sha":"2dca1f35ceb8ff9748f380cfb6aa481a45109b2b","date":"2023-03-17T18:06:14Z"}}
GET <https://growthbook-api.example.com/organization>
Response
{"status":401,"message":"No authorization token was found"}
[1] Why is api_host in response shown as "
http://growthbook-api.example.com:3100", config has this set as "
https://growthbook-api.example.com"
[2] How do I resolve missing token issue, will appreciate any pointers.
Thank you 🙏