Hi team; it it possible to set up a self-hosted pr...
# ask-questions
b
Hi team; it it possible to set up a self-hosted proxy that points to GB-hosted cloud instance?
r
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
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
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
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
sure, you could also use the same url with cdn.growthbook.io
🙏 1
b
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?