mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 22:36:31 +00:00
55 lines
1.8 KiB
C#
55 lines
1.8 KiB
C#
using Azaion.CommonSecurity.DTO;
|
|
|
|
namespace Azaion.CommonSecurity;
|
|
|
|
public class SecurityConstants
|
|
{
|
|
public const string CONFIG_PATH = "config.json";
|
|
|
|
public const string DUMMY_DIR = "dummy";
|
|
|
|
#region ExternalClientsConfig
|
|
|
|
public const string EXTERNAL_INFERENCE_PATH = "azaion-inference.exe";
|
|
public const string EXTERNAL_GPS_DENIED_FOLDER = "gps-denied";
|
|
public static readonly string ExternalGpsDeniedPath = Path.Combine(EXTERNAL_GPS_DENIED_FOLDER, "image-matcher.exe");
|
|
|
|
public const string DEFAULT_ZMQ_INFERENCE_HOST = "127.0.0.1";
|
|
public const int DEFAULT_ZMQ_INFERENCE_PORT = 5227;
|
|
|
|
public const string DEFAULT_ZMQ_GPS_DENIED_HOST = "127.0.0.1";
|
|
public const int DEFAULT_ZMQ_GPS_DENIED_PORT = 5227;
|
|
|
|
public const int DEFAULT_RETRY_COUNT = 25;
|
|
public const int DEFAULT_TIMEOUT_SECONDS = 5;
|
|
|
|
# region Cache keys
|
|
|
|
public const string CURRENT_USER_CACHE_KEY = "CurrentUser";
|
|
public const string HARDWARE_INFO_KEY = "HardwareInfo";
|
|
|
|
# endregion
|
|
|
|
public static readonly SecureAppConfig DefaultSecureAppConfig = new()
|
|
{
|
|
InferenceClientConfig = new InferenceClientConfig
|
|
{
|
|
ZeroMqHost = DEFAULT_ZMQ_INFERENCE_HOST,
|
|
ZeroMqPort = DEFAULT_ZMQ_INFERENCE_PORT,
|
|
OneTryTimeoutSeconds = DEFAULT_TIMEOUT_SECONDS,
|
|
RetryCount = DEFAULT_RETRY_COUNT
|
|
},
|
|
GpsDeniedClientConfig = new GpsDeniedClientConfig
|
|
{
|
|
ZeroMqHost = DEFAULT_ZMQ_GPS_DENIED_HOST,
|
|
ZeroMqPort = DEFAULT_ZMQ_GPS_DENIED_PORT,
|
|
OneTryTimeoutSeconds = DEFAULT_TIMEOUT_SECONDS,
|
|
RetryCount = DEFAULT_RETRY_COUNT,
|
|
},
|
|
DirectoriesConfig = new DirectoriesConfig
|
|
{
|
|
ApiResourcesDirectory = ""
|
|
}
|
|
};
|
|
#endregion ExternalClientsConfig
|
|
} |