# Setup Squid proxy on Ubuntu server
Open a terminal and run the following commands to install Squid <br>
`sudo apt update` <br>
`sudo apt install squid`

Open the Squid configuration file <br>
`sudo nano /etc/squid/squid.conf`

Change the rule from `http_access deny all` to `http_access allow all`. Save and close the file.

Restart the squid service <br>
`sudo systemctl restart squid.service`

Modify the axios library configuration in your code to use the proxy server with the help of the **https-proxy-agent** 
library. <br>
`const HttpsProxyAgent = require("https-proxy-agent");` <br>
`const axios = require("axios").create({
    proxy: false,
    httpsAgent: new HttpsProxyAgent(process.env.PROXY_URL)
});`
