/
How to configure properties with environment variables

How to configure properties with environment variables

FIX Antenna C/C++/.NET

To configure FIXAntenna properties with an environment variables you need the following:

  1. Define environment variable in the system:

    Linux

    export PATH_TO_LICENSE=/etc/all_licenses/engine.license

    Windows

    set PATH_TO_LICENSE=C:/all_licenses/engine.license

  2. Apply environment variable. FIXAntenna can utilize environment variables in the engine.properties file, using the syntax:

    ${EnvVarName} - this construction will be substituted with an actual value of EnvVarName

    Example
    # The license file path.
    LicenseFile= ${PATH_TO_LICENSE}

It is not recommended to use environment variables for the following properties:

EngineRoot, ListenPort, Monitoring.ListenPort, LogDirectory, Monitoring.AdminSessionNames, Monitoring.AdminSession.*, AnchorFile.

Related content

How to build your application with FIX Antenna .NET libraries
How to build your application with FIX Antenna .NET libraries
More like this
How to use SSL with FIX Antenna C++ and FIX Antenna .NET
How to use SSL with FIX Antenna C++ and FIX Antenna .NET
More like this
How to configure FIX version for the session in FIX Antenna C++
How to configure FIX version for the session in FIX Antenna C++
More like this