Please note
These settings can only be made for our Enterprise editions, as they require an adjustment of the Docker configuration.
Attention
We can't offer services for all kinds of third party network solutions and this article is just to get you on the right track.
Attention
Right now it's not possible to use a HTTP/S proxy with authentication with COYO. You would have to allow the COYO host to use the proxy without authentication.
To adjust apt proxy configuration on your ubuntu server you need to make changes at:
/etc/apt/apt.conf
/etc/apt/apt.conf
Acquire::http::proxy "http://[proxyhost]:[proxyport]/";
Acquire::https::proxy "http://[proxyhost]:[proxyport]/";
Also for ubuntu server you need to set the proxy server in your host environment at:
/etc/environment
/etc/environment
http_proxy="http://[proxyhost]:[proxyport]/"
https_proxy="http://[proxyhost]:[proxyport]/"
HTTP_PROXY="http://[proxyhost]:[proxyport]/"
HTTPS_PROXY="http://[proxyhost]:[proxyport]/"
Docker Container will not take over the Host Proxy configuration so you may need to adjust here. But more easy you can add proxy configurations for the PUSH and BACKEND JVM (Java Virtual Machine) in your .env File.
# COYO Java opts used for backend
COYO_JAVA_OPTS=-Xmx2g -server -Dhttp.proxyHost=[proxyhost] -Dhttp.proxyPort=[proxyport] -Dhttp.proxySet=true -Dhttp.nonProxyHosts="localhost|127.0.0.1|coyo-*|[COYO_BACKEND_URL]" -Dhttps.proxyHost=[proxyhost] -Dhttps.proxyPort=[proxyport] -Dhttps.proxySet=true -Dhttps.nonProxyHosts="localhost|127.0.0.1|coyo-*|[COYO_BACKEND_URL]"
# Java opts used for COYO push service
COYO_PUSH_JAVA_OPTS=-Xmx1g -server -Dhttp.proxyHost=[proxyhost] -Dhttp.proxyPort=[proxyport] -Dhttp.proxySet=true -Dhttp.nonProxyHosts="localhost|127.0.0.1|coyo-*|[COYO_BACKEND_URL]" -Dhttps.proxyHost=[proxyhost] -Dhttps.proxyPort=[proxyport] -Dhttps.proxySet=true -Dhttps.nonProxyHosts="localhost|127.0.0.1|coyo-*|[COYO_BACKEND_URL]"
We found this article by Elegantinfrastructure interesting. Maybe this will help you too.