picklefan 0a80e89354
Englishize sidebar and navbar, fixe a typo, translate some docs (#357)
* translate transpots docs into english

* p1

* p1

* fix typo

* Englishize sidebar and navbar, fixe a typo, translate some docs

* prettiered
2023-04-01 11:20:39 -04:00

1.1 KiB
Raw Blame History

Environment Variables

Xray provides the following environment variables for modifying some of its underlying configurations.

Xray Asset Location

  • Namexray.location.asset or XRAY_LOCATION_ASSET
  • Default valuespecified FHS directory or the same path as the Xray file.

This environment variable specifies a folder location that should contain the geoip.dat and geosite.dat files. If no variable value is specified, the program will search for resource files in the following order:

./
/usr/local/share/xray
/usr/share/xray

Configuration File Location

  • Namexray.location.config or XRAY_LOCATION_CONFIG
  • Default value: Same path as the Xray file.

This environment variable specifies a folder location that should contain the config.json file.

Multiple Configuration Directories

  • Namexray.location.confdir or XRAY_LOCATION_CONFDIR
  • Default value""

The .json files in this directory will be read in alphabetical order by filename and used as options for multiple configurations.