Skip to content

FastX 5 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

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

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
  • logins/<servername>/<login-id>.json: directory that stores decoded login object. These files are in JSON format
  • 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
  • ssh-keys/: directory for storing SSH public keys when authenticating

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/5/.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/fastx5.service

The fastx5-server package will include the systemd unit files in /usr/lib/systemd/system. An installation will automatically enable and start the fastx5 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 fastx5

systemd ssh service: /usr/lib/systemd/system/fastx5-sshd.service

The fastx5-server package will include the systemd unit files in /usr/lib/systemd/system. An installation will automatically enable and start the fastx5-sshd 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 fastx5-sshd