Proxy

The following explains how to run Collectu Core behind a proxy.


Linux

Set up the general proxy settings:

sudo tee /etc/apt/apt.conf.d/proxy.conf > /dev/null <<EOF Acquire { HTTP::proxy "http://<proxy-host>:<port>/"; HTTPS::proxy "http://<proxy-host>:<port>/"; } EOF


Docker

Configure Docker to use the proxy:

sudo mkdir -p /etc/systemd/system/docker.service.d sudo tee /etc/systemd/system/docker.service.d/proxy.conf > /dev/null <<EOF [Service] Environment="HTTP_PROXY=http://<proxy-host>:<port>/" Environment="HTTPS_PROXY=http://<proxy-host>:<port>/" Environment="NO_PROXY=localhost,127.0.0.1,::1" EOF

Restart Docker:

sudo systemctl daemon-reload sudo systemctl restart docker

Add proxy environment variables to your docker-compose file:

environment: - HTTP_PROXY=http://<proxy-host>:<port>/ - HTTPS_PROXY=http://<proxy-host>:<port>/ - NO_PROXY=localhost,127.0.0.1,::1


Windows / Python

Clone the repository with proxy settings:

git clone --config http.proxy=http://<proxy-host>:<port>/ https://github.com/core4x/collectu-core.git

Fix SSL errors for pip if necessary:

pip config set global.trusted-host "pypi.org files.pythonhosted.org pypi.python.org" \ --trusted-host=pypi.python.org \ --trusted-host=pypi.org \ --trusted-host=files.pythonhosted.org

Install Python dependencies behind a proxy:

pip install --proxy http://<proxy-host>:<port>/ -r requirements.txt