Environment Variables

Cache size per connection

(V2Ray 3.34+) 2 on x86, amd64, arm64 and s390x. This cache is disabled on other platforms.

Special value: 0 for unlimited cache size

For each connection, when there is a difference in speed between inbound and outbound traffic, V2Ray will cache some data for larger throughput. This setting controls the size of the cache. The larger the cache, the better the performance.

Location of V2Ray asset

Name: v2ray.location.asset or V2RAY_LOCATION_ASSET

Default value: Same directory where v2ray is.

This variable specifies a directory where geoip.dat and geosite.dat files are.