This message was deleted.
# announcements
w
This message was deleted.
f
API_HOST should contain the publicly accessible host not the internal ecs host, so https://growthbook-api.ourdomain.com in your example
n
We tried that, but then we get the error message
OAuth Error: Error Signing In
when accessing the UI. Only by providing
<http://growthbook.ourdomain.com:3100|growthbook.ourdomain.com:3100>
as API_HOST the setup works. We use Azure AD for SSO.
f
If you go to the CloudFront domain directly do you see a JSON object returned with status info about the API?
n
Yep, that works fine. The only 'issue' is that we cannot set the CloudFront url in the GB environment variables.
f
When you get the OAuth error, are there any other errors in the dev tools console? Like maybe CloudFront is not forwarding cors headers properly
n
So our users see the :3100 url when they look at the feature integration examples or the SDK example in the UI.
f
Oh, I think I was misunderstanding. So everything is working fine and the only thing you want to change is the domain shown in the code examples, is that right?
n
Correct.
f
Ok. We don't have an environment variable to override that yet, but it's easy to add. We do the same on GrowthBook Cloud to show cdn.growthbook.io in instructions. I'll create a github issue
❤️ 1
n
Awesome! Thank you :)
148 Views