Service configuration#
Configure Selinux and Firewall so that they do not block the service.
The service is configured via the Luna Configurator service. The Luna Configurator service requires Postgresql to be installed.
1․ Launch Luna Configurator: http://{host}:5070/dashboard/settings.html—server address, port 5070
, /dashboard/settings.html
2․ Specify lunapass
as a group to display the desired settings (Figure 9):

3․ Perform the settings according to the description (Tables 11-19 and Figures 10-20)
Configuring the service in Luna Configurator#

Table 11. Selecting the operating mode and configuring the JWT packet
Parameter |
Description |
---|---|
Operating mode |
|
env |
Mode:
For more information see the "Logging and debugging" section Default: |
Configuration parameters LUNA_PASS.JWT |
|
algorithm |
Successful frame encryption algorithm Default: |
key |
Successful frame encryption secret Default: |

Table 12. Session parameters
Parameter |
Description |
---|---|
Session parameters |
|
max_attempts |
Maximum number of frames received within 1 session. If the value is exceeded, the current frame is sent as is and the connection is terminated. If no value is present, the frames are checked until there is a successfully passed Liveness Default: |
max_liveness_attempts |
The maximum number of frames that have reached the Liveness estimation. If the value is exceeded, the current frame is sent as is and the connection is terminated. If no value is present, the frames are checked until there is a successfully passed Liveness Default: |
aggregate_frames |
Number of frames to aggregate. Must be at least 1 Default: |
accept_one_eye_open |
Allow one eye to be checked for openness:
Default: |
previous_face_similarity |
Similarity threshold. If the similarity value is below the threshold, then it is considered that the frames have different faces and the session is terminated Default: |
multiface_policy |
Policy for selecting a person to check Liveness. Available values:
Default: |

Table 13. Parameters for the ROI face recognition zone
Parameter |
Description |
---|---|
center_x |
The center of the ROI zone along the X axis Default: The
Default: |
center_y |
The center of the ROI zone along the Y axis Default: The
Default: |
width |
The width of the ROI zone Default: The
Default: |
height |
Height of the ROI zone Default: The
Default: |

Table 14. Face estimation thresholds
Parameter |
Description |
---|---|
blur |
Photo blurring Default: |
light |
Backlighting of the photo image Default: |
dark |
Darkening of the photo image Default: |
illumination |
Uniformity of image illumination, 0 – uniform, 1 – there are overexposures Default: |
specularity |
Glare on the image, 0 – no glare, 1 – there are glare Default: |
face_width |
Face frame width Default: |
face_height |
Face frame height Default: |
yaw |
Rotation around the vertical axis of the head Default: |
pitch |
Rotation around the transverse axis of the head Default: |
roll |
Rotation around the longitudinal axis of the head Default: |
mouth |
Required accuracy of mouth status assessment Default: |
glasses |
Availability of glasses. Available values:
Default: |
deepfake |
Required accuracy of the Deepfake estimation. Comment out the line the corresponding threshold to disable checking Default: |
liveness |
Thresholds for the OneShot Liveness test result at which a person will be considered «alive» Default: |

Table 15. ActiveLiveness parameters
Parameter |
Description |
---|---|
is_enabled |
Active Liveness Default: |
cooldown_frames_count |
Minimum number of frames after passing active Liveness Default: |
interaction_list |
Used checks:
Default: [ |
interaction_count |
Number of user interactions to use. The maximum number
must not exceed the number of checks specified in Default: |
interaction_order |
The order of interaction of checks:
Default: |
yaw_start_deg |
Initial angle of rotation at which it is possible to begin interaction with head turns Default: |
yaw_threshold_deg |
Threshold angle of rotation at which interaction on head turns is considered completed Default: |
pitch_start_deg |
The initial head tilt angle at which it is possible to begin head tilt interaction Default: |
pitch_threshold_deg |
The head tilt angle threshold at which the head tilt interaction is considered completed Default: |

Table 16. VirtualCameraChecker, FileLogger, VideoRedis parameters
Parameter |
Description |
---|---|
Virtual Camera Checker parameter |
|
is_enabled |
Check frames for use of a virtual camera Default: |
File Logger parameters |
|
is_enabled |
Saves all incoming photos and the results of their estimation within one session to a file Default: |
path |
Path for saving file logs Default: |
Video Redis parameters* |
|
is_enabled |
Stitching frames together to create a video and sending session frames to Redis Default: |

Table 17. LUNA PASS_VIDEO parameters
Parameter |
Description |
---|---|
LUNA PASS_VIDEO settings |
|
codec |
The codec used for video encoding Default: |
frames_limit |
Limit the maximum number of frames in a video:
Default: |
expires |
Number of seconds for Redis to store frames that were not used in the video.
The information is erased after the Default: |
result_ttl |
How long Redis stores information about successful tasks and their По умолчанию: |
session_timeout |
Number of seconds to start building video after session termination if no bestshot is available Default: |

Table 18. LUNAPASS_REDIS_DB_ADDRESS parameters
Parameter |
Description |
---|---|
host |
Redis DB IP address Default: |
port |
The port number on which Redis listens for incoming network connections and listens to execute commands from clients Default: |
user |
Redis database username No default value |
password |
Redis database password No default value |
master_name |
The name of the Redis database master that is monitored and managed by Sentinel Default: |
sentinels |
List of Sentinel server addresses and ports that will be used by clients to discover and monitor Redis databases. Default: [] |
user |
Sentinel server username No default |
password |
Sentinel server user password No default |
number |
Database number Default: |

Table 19. LUNAPASS_VIDEO_LOGGER parameters
Parameter |
Description |
---|---|
log_level |
Sets the level of debug printing, by priority: "ERROR", "WARNING", "INFO", "DEBUG" Default: |
folder_with_logs |
The folder where the logs are stored (the relative path starts from the directory with the application) Default: |
max_log_file_size |
Maximum log file size in MB before rotation (0 - do not use rotation) Default: |
log_time |
The time format used in log entries: "LOCAL" or "UTC" Default: |
log_to_stdout |
Enables you to send the log to standard output (stdout). Two options are available - "true" or "false" Default: |
log_to_file |
Enables you to send the log to a file. Two options are available - "true" or "false" Default: |
multiline_stack_trace |
Enables or disables multi-line traces in logs. Two options are available - "true" or "false" Default: |
format |
Log format Default: |

Table 20. LUNAPASS_VIDEO_HTTP_SETTINGS parameters
Parameter |
Description |
---|---|
request_timeout |
The amount of time between when a new open TCP connection is passed to the server (in seconds) Default: |
response_timeout |
The amount of time between when the server passes an HTTP request to the application and when the HTTP response is sent to the client (in seconds) Default: |
request_max_size |
The maximum request size in bytes Default: |
keep_alive_timeout |
HTTP keep-alive timeout Default: |

Table 21. LUNA_REMOTE_SDK_ADDRESS parameters
Parameter |
Description |
---|---|
origin |
Protocol, IP address and port of the Remote SDK service Default: |
api_version |
Remote SDK service API version. Available API version is "1". Default: |