1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/doc/proxy.md
2022-06-13 17:03:35 +02:00

1.3 KiB

Install Fab-manager behind a proxy

Configure docker service

As root, create a service configuration file for docker:

mkdir -p /etc/systemd/system/docker.service.d
vi /etc/systemd/system/docker.service.d/http-proxy.conf
[Service]
Environment="HTTP_PROXY=http://proxy.example.com:8080/"
Environment="HTTPS_PROXY=https://proxy.example.com:8080/"
Environment="NO_PROXY=localhost,example.com"
systemctl daemon-reload
systemctl restart docker

Configure docker client

As root, create a configuration file for the docker client:

mkdir -p /root/.docker
vi /root/.docker/config.json
{
  "proxies": {
    "default": {
      "httpProxy": "http://proxy.example.com:8080",
      "httpsProxy": "https://proxy.example.com:8080",
      "noProxy": "localhost,example.com"
    }
  }
}

Configure your terminal and run the installation

See the production guide for more information and options about the setup command.

export http_proxy="http://proxy.example.com:8080" https_proxy="https://proxy.example.com:8080" no_proxy="localhost,example.com"
\curl -sSL setup.fab.mn | bash

During the installation, if you have correctly exported the variable http_proxy, you will be prompted to enter your proxy CA certificate, if needed.