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

brief-traffic-36675

01/29/2024, 12:01 PM
Hi team; it it possible to set up a self-hosted proxy that points to GB-hosted cloud instance?
r

rhythmic-agent-34208

01/29/2024, 3:28 PM
Hi Pantelis, yes, that's perfectly fine. I'll refer you to our documentation on the Proxy here: https://docs.growthbook.io/self-host/proxy
b

brief-traffic-36675

01/29/2024, 3:35 PM
Can I have the cloud instance serving at the same time both from your CDN endpoint AND my self-hosted proxy? I am asking because there is a api-related environment variable named
PROXY_HOST_PUBLIC
(which I assume cannot take 2 variables simultaneously, right?)
f

fresh-football-47124

01/29/2024, 4:17 PM
right - the proxy should return the same values as the CDN, you're just able to cache and do some more advanced things with the proxy
b

brief-traffic-36675

01/29/2024, 4:19 PM
OK thanks will give it a try
I assume the value of
GROWTHBOOK_API_HOST
for the proxy deployment should be set to
<https://api.growthbook.io/>
right?
f

fresh-football-47124

01/29/2024, 4:26 PM
sure, you could also use the same url with cdn.growthbook.io
🙏 1
b

brief-traffic-36675

02/06/2024, 9:08 AM
Hi team. We would like your help on this issue; we have setup a local self-hosted proxy. We have set
GROWTHBOOK_API_HOST: <https://api.growthbook.io/>
. We have issued from the cloud instance a read only admin key which is set as env var to the proxy as
SECRET_API_KEY
.
Hi team. We would like your help on this issue; we have setup a local self-hosted proxy. We have set
GROWTHBOOK_API_HOST: <https://api.growthbook.io/>
. We have issued from the cloud instance a read only admin api key which is set as env var to the proxy as
SECRET_API_KEY
. However when accessing
<https://our-self-hosted-proxy/api/features/sdk-><hash>
we are getting
401:  No Authorization token was found
. Any suggestions?
4 Views