Skip to content
Command Line Options

Command Line Options

rpxy always requires a configuration file in TOML format, e.g., config.toml on GitHub repo.

We will introduce some typical configurations in the Basic Setups and Advanced Usage sections. The detailed configuration options are described in the Configuration Options section.

You can run rpxy with a configuration file like

% ./path/to/rpxy --config config.toml

Since version 0.10.0, rpxy automatically monitors configuration file changes in real-time and applies them immediately without restarting the process.

The full help messages are given follows.

usage: rpxy [OPTIONS] --config <FILE>

Options:
  -c, --config <FILE>      Configuration file path like ./config.toml
  -l, --log-dir <LOG_DIR>  Directory for log files. If not specified, logs are printed to stdout.
  -h, --help               Print help
  -V, --version            Print version

If you set --log-dir=<log_dir>, the log files are created in the specified directory. Otherwise, the log is printed to stdout.

  • ${log_dir}/access.log for access log
  • ${log_dir}/rpxy.log for system and error log

That’s all!