https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
i

incalculable-cpu-12868

05/04/2022, 7:41 AM
hello @future-teacher-7046 @fresh-football-47124 what should i provide for API_HOST env variable inside docker.compose-yml, if i am having DNS mapped to the APP_Origin?
f

fresh-football-47124

05/04/2022, 7:54 AM
Hi Rishabh
i

incalculable-cpu-12868

05/04/2022, 7:56 AM
hello @fresh-football-47124!!
f

fresh-football-47124

05/04/2022, 7:56 AM
depends a bit on how you want it to be setup - what domain are wanting to use?
i

incalculable-cpu-12868

05/04/2022, 7:58 AM
lets say ealrier APP_ORIGIN was at http://ip:3000 now the DNS is https://abc.in and app is accessibel there, but i am getting a error saying Error connecting to the GrowthBook API at
<https://abc.in/>
.
f

fresh-football-47124

05/04/2022, 7:59 AM
okay...
i

incalculable-cpu-12868

05/04/2022, 7:59 AM
i have changed API_HOST env variable to https://abc.in
f

fresh-football-47124

05/04/2022, 8:00 AM
Copy code
- APP_ORIGIN=<http://abc.in>
- API_HOST=<http://abc.in:3100>
i

incalculable-cpu-12868

05/04/2022, 8:00 AM
still not working
tried this conbination
f

fresh-football-47124

05/04/2022, 8:00 AM
did you change the port?
i

incalculable-cpu-12868

05/04/2022, 8:00 AM
yes
f

fresh-football-47124

05/04/2022, 8:01 AM
can you dm me your docker-compose.yml?
i

incalculable-cpu-12868

05/04/2022, 8:01 AM
sure
13 Views