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

future-printer-83389

01/24/2024, 2:01 AM
Hey guys, I deploy GrowthBook on our platform based on k8s. The backend has already running up, but frontend cannot connect to it. I've already set these env but not works. Some one provide suggestions?
MONGODB_USERNAME = admin MONGODB_PASSWORD = GrowthbookMongo! MONGODB_HOST = mongo-growthbook MONGODB_PORT = 27017 APP_ORIGIN = http://localhost:3000 API_HOST = http://localhost:3100 JWT_SECRET = GrowthbookMongo! ENCRYPTION_KEY = GrowthbookMongo! CORS_ORIGIN_REGEX = '.*'
f

fresh-football-47124

01/24/2024, 7:42 PM
Hi Yi - the APP_ORIGIN and API_HOST are most likely not correct - the API HOST needs to be a routable URL from your GrowthBook App (front end) to the API. If you enter it directly you should see a small json object returned
f

future-printer-83389

01/30/2024, 7:03 AM
Yes, I tried use cluster internal addr and external, both failed. I ineed see the json by the external address in browser. Do you have any other debug suggestions?
18 Views