Out-going proxy support?


#1

We are using the Skygear server with the chat plugin in a self-hosted deployment on Docker.

In our production environment all out-going connection need to go through a proxy. The chat plugin sends pushes to FCM and APNS.
Is the Skygear server somehow able to be configured with an outgoing-proxy? E.g. with environment variables?

Thank you


#2

Do you need any more details to answer the question?

Thank you


#3

Hi @kevin.seidler,

Chat plugin sends pushes through skygear-server. skygear-server is written in golang, golang default http client supports environment variables HTTP_PROXY, HTTPS_PROXY and NO_PROXY. Maybe you can try those environment variables.

If it doesn’t work, you may need to further look into the libraries that skygear-server use to send pushes.

Or consider to configure on OS level to route the traffic.

I hope this will help!

Carmen


#4

Hi @carmenlau

Thanks a lot! I will try.

Cheers


#5

It works, thank you very much :slight_smile: