Skip to content

FastX 4 Configuration

FastX uses the following directories for configuration and data storage. All files are in human readable format, and can be edited by hand for easier integration with configuration management tools such as Puppet, Ansible, or Kubernetes ConfigMaps. Unless stated, assume files are in .ini file format.

FX_CONFIG_DIR, FX_VAR_DIR, FX_LOCAL_DIR, FX_TEMP_DIR can be overriden

Click here for notes on migrating from version 3.3

FX_CONFIG_DIR: /etc/fastx

Stores nonvolatile configuration.
Override the default location by setting FX_CONFIG_DIR

In a cluster configuration, this directory must be shared across the cluster.

The following files and directories are found within the FX_CONFIG_DIR directory.

FX_VAR_DIR: /var/fastx

Stores volatile configuration
Override the default location by setting FX_VAR_DIR

In a cluster configuration, this directory must be shared across the cluster.

The following files and directories are found within the FX_VAR_DIR directory.

  • fastx.crt: certificate file
  • fastx.key: key file
  • fastx.ca_bundle.crt: CA bundle file
  • license/<license>.lic: license directory. Each .lic file is a license
  • users/<user>: users directory
  • public_keys: public keys directory. Multiple servers in the cluster write their keys to this directory

FX_LOCAL_DIR: /var/fastx/local

Stores configuration local to the server only.
Override the default location by setting FX_LOCAL_DIR
FX_LOCAL_DIR must be unique for each component

In a cluster configuration, this directory should be unique with each server. This directory may be mounted.

The following files and directories are found within the FX_LOCAL_DIR directory.

  • socket.json: link connections read this file. Should not be edited by admins
  • fastx.key: private key for webserver. Generated by the webserver
  • fastx.cert: self signed certificate for webserver. Generated by the webserver

FX_TEMP_DIR: /tmp

Temp directory.
Used in certain circumstances for communication between different users.

Override the default location by setting FX_TEMP_DIR

In a cluster configuration, this directory should be unique with each server. This directory must be on the local system

.env file: /usr/lib/fastx/4/.env

FastX will use the dotenv standard to customize the locations of the above directories. The dotenv file is located in /usr/lib/fastx/4/.env. This file is also used for a non-root installation.

systemd service: /usr/lib/systemd/system/fastx4.service

The fastx4-server package will include the systemd unit files in /usr/lib/systemd/system. An installation will automatically enable and start the fastx4 service

It is not recommended to change this file, because any changes will be lost on an upgrade. Instead make custom modifications using the command sudo systemctl edit fastx4

fastx4.service environment file: /etc/sysconfig/fastx4

This is legacy file will be loaded by the fastx4 systemd service, if present. For Debian/Ubuntu users, the file /etc/default/fastx4 may also be used.

The current Linux recommendation is to use “systemctl edit” instead of auxiliary files such as these.