Setting Up an HTTP/HTTPS Proxy

Information

PSPDFKit Server has been deprecated and replaced by PSPDFKit Document Engine. All PSPDFKit Server and PSPDFKit for Web Server-Backed licenses will work as before and be supported until 15 May 2024 (we will contact you about license migration). To start using Document Engine, refer to the migration guide. With Document Engine, you’ll have access to robust new capabilities (read the blog for more information).

To set up an HTTP/HTTPS proxy in Docker 17.07 and higher for Linux, create or edit the ~/.docker/config.json file in the home directory of the user that starts containers:

"proxies":
 {
   "default":
   {
     "httpProxy": "http://127.0.0.1:3001",
     "httpsProxy": "http://127.0.0.1:3001",
     "noProxy": "*.test.example.com,.example2.com"
   }
 }
}

Please review the official Docker docs for more details and solutions for older Docker versions.

According to the Docker docs, “many Linux distributions use systemd to start the Docker daemon.” To set up a proxy for Docker via systemd, refer to the following example.