How do I configure proxy for my terminal with v2ray? With v2ray on macOX 10.13.6, I can access some sites from Chrome but I cannot access those sites from terminal.
the configuration for v2ray looks like this
{
    &quot;v&quot;: &quot;2&quot;,
    &quot;ps&quot;: &quot;\u8bxx-Azure&quot;,
    &quot;add&quot;: &quot;xx.acrossgw.info&quot;,
    &quot;port&quot;: 8088,
    &quot;id&quot;: &quot;xxx-b6xxx8954c&quot;,
    &quot;aid&quot;: &quot;16&quot;,
    &quot;net&quot;: &quot;ws&quot;,
    &quot;type&quot;: &quot;none&quot;,
    &quot;host&quot;: &quot;xx.acrossgw.info&quot;,
    &quot;path&quot;: &quot;\/data&quot;,
    &quot;tls&quot;: &quot;tls&quot;
}

Per this post, this command sets proxy for terminal session
export http_proxy=&quot;username:password@ip address:port number&quot;

I put this line at the end of my ~/.bash_profile
export http_proxy=&quot;xxx-b6xxx8954c:\u8bxx-Azure@xx.acrossgw.info:8088&quot;

but I cannot access those sites from terminal either, how do I do?
Taking a quick stab from the documentation:
It does not appear that v2ray will pick up from the environment the http_proxy env var, it needs to be configured via a JSON (or protobuf) file. There's an example client config file here.
You'd save that file somewhere, then run it in your terminal like this:
v2ray --config=/etc/v2ray/config.json (or wherever your config file lives).