Configuration
Tune AIQ Realtime Services with optional environment variables and YAML configuration.
Environment Variables
AIQ Realtime Services accepts several optional environment variables that set useful behaviors for the service. They are described below.
| Variable | Type | Description |
|---|---|---|
FL_UPDATE_INTERVAL | Time string ( 1m, 2h, 300h) | Specifies the time period between postal directory updates. The default update interval, if not specified, is 24 hours. When a directory update is triggered after this interval expires, the application checks if any new files are available in the postal directories repository and installs them if relevant files are found. |
FL_DISABLE_GEO | Boolean | Can be set to true to disable geocoding capabilities. |
FL_DISABLE_DIR_UPDATES | Boolean | Must be set to true in order to disable automated directory updates. By default, it is considered set to false. You may consider setting this variable to true in the following scenarios:
|
FL_USER | Username string | Credentials for Firstlogic's file repository. When these credentials are provided as part of the docker run command, the container will install the postal directories required by your SDK server. |
FL_PASS | Password string | Credentials for Firstlogic's file repository. When these credentials are provided as part of the docker run command, the container will install the postal directories required by your SDK server. |
FL_MAX_THREADS | Integer | Used to determine the maximum number of worker threads that will be initialized by the service. If the variable is not set or invalid, the service defaults to 4. If the detected number of available CPUs is less than 4, it will use the number of available CPUs instead. |
Config YML Files
Customizing the output fields and behavior of the address verification API can be done by modifying the aiq_config.yml file located in the config directory, and then mapping it as a volume to /app/config using docker run:
docker run -d \
-e FL_USER="<username>" \
-e FL_PASS="<password>" \
-v fl_data:/fl_data \
-v <path_to_config>:/app/config \
-p 8080:8080 \
addressiq-webIf you do not require any customization, there is no need to include this volume mapping - defaults will be used.
Configuration example
The aiq_config.yml file can be extended to expose additional output fields. For example, to add the Address_Match_Level geocoding field as an output, you would add this field to the list of Output_Fields in the Geocoding_Options section of the YAML:
Geocoding_Options:
Geocoding_Mode: Best
Geo_Data_Folder: $GEO_DIRECTORY_PATH
Geo_Output: Both
Output_Fields:
- Address_Latitude
- Address_Longitude
- Metro_Stat_Area_Code
- Census_Tract_Block
- Gov_Region1_Code
- Gov_County_Code
- Address_Match_Level # new field