Compare commits

...
4 Commits
Author SHA1 Message Date
saherelm 8c4402ba2b add config for cache ttl ... 2026-11-15 21:26:18 +03:30
saherelm 889d5b34f6 Fix Verification TTL to Minutes ... 2026-11-13 19:01:42 +03:30
saherelm d85314b05a cleaning configuration for bot ... 2026-11-13 13:49:30 +03:30
saherelm 18a9b4e7c7 update Bot Configurations ... 2026-11-11 23:42:45 +03:30
+225 -223
View File
@@ -1,225 +1,227 @@
{ {
"Version": "0.1", "Version": "0.1",
"Name": "xApi", "Name": "xApi",
"DefaultLanguage": "fa-IR", "DefaultLanguage": "fa-IR",
"XPoweredValue": "SaherElmITCenter", "XPoweredValue": "SaherElmITCenter",
"WelcomeMessage": "Welcome to xSaherElm Project's API", "WelcomeMessage": "Welcome to xSaherElm Project's API",
"AllowedOrigins": ["http://saherelm.ir", "https://saherelm.ir"], "AllowedOrigins": ["http://saherelm.ir", "https://saherelm.ir"],
"SwaggerConfiguration": { "DefaultCacheTtlMinutes": 10,
"Version": "v1.0", "SwaggerConfiguration": {
"Title": "xSaherElm API", "Version": "v1.0",
"Description": "Complete API Documentation", "Title": "xSaherElm API",
"Contact": { "Description": "Complete API Documentation",
"Name": "Hadi Khazaee Asl", "Contact": {
"Email": "hadi_khazaee_asl@yahoo.com", "Name": "Hadi Khazaee Asl",
"Url": "https://www.saherelm.ir" "Email": "hadi_khazaee_asl@yahoo.com",
}, "Url": "https://www.saherelm.ir"
"DefaultValues": { },
"version": "1.0" "DefaultValues": {
} "version": "1.0"
}, }
"MessageConfiguration": { },
"MailConfigurations": { "MessageConfiguration": {
"gmail": { "MailConfigurations": {
"Title": "SaherElm Dashboard", "gmail": {
"Host": "smtp.gmail.com", "Title": "SaherElm Dashboard",
"Port": 587, "Host": "smtp.gmail.com",
"EnableSsl": true, "Port": 587,
"Username": "saherelm@gmail.com", "EnableSsl": true,
"Password": "vzuz gtrk tndb ctbc" "Username": "saherelm@gmail.com",
} "Password": "vzuz gtrk tndb ctbc"
}, }
"SmsConfigurations": { },
"yoursms": { "SmsConfigurations": {
"ServiceUrl": "http://sms.yourprovider.ir", "yoursms": {
"Username": "user", "ServiceUrl": "http://sms.yourprovider.ir",
"Password": "psw", "Username": "user",
"LineNumber": "linenumber", "Password": "psw",
"UserApiKey": "", "LineNumber": "linenumber",
"SecretKey": "" "UserApiKey": "",
} "SecretKey": ""
} }
}, }
"MessageResourceTitles": { },
"Terms": "terms", "MessageResourceTitles": {
"Invite": "user_invite_msg", "Terms": "terms",
"RegistrationApprove": "registration_approve_msg", "Invite": "user_invite_msg",
"Registered": "registered_msg", "RegistrationApprove": "registration_approve_msg",
"VerificationCode": "verification_code_msg", "Registered": "registered_msg",
"ChangePassword": "change_password_msg", "VerificationCode": "verification_code_msg",
"PasswordChanged": "password_changed_msg", "ChangePassword": "change_password_msg",
"NewDeviceLoggedIn": "new_device_logged_in_msg" "PasswordChanged": "password_changed_msg",
}, "NewDeviceLoggedIn": "new_device_logged_in_msg"
"DataServiceConfiguration": { },
"Databases": { "DataServiceConfiguration": {
"xApiDb": { "Databases": {
"Provider": "SQLITE", "xApiDb": {
"ConnectionString": "Filename=./Db/XApi.db", "Provider": "SQLITE",
"SeedItems": { "ConnectionString": "Filename=./Db/XApi.db",
"XTest": [ "SeedItems": {
{ "XTest": [
"Firstname": "Hadi", {
"Lastname": "Khazaee Asl" "Firstname": "Hadi",
}, "Lastname": "Khazaee Asl"
{ },
"Firstname": "Amir Ali", {
"Lastname": "Khazaee Asl" "Firstname": "Amir Ali",
} "Lastname": "Khazaee Asl"
] }
} ]
} }
}, }
"EnableTracking": true, },
"EnableSoftDelete": true, "EnableTracking": true,
"EnableDetailedErrors": false, "EnableSoftDelete": true,
"SeedingMode": "AddIfNotExists", "EnableDetailedErrors": false,
"EnableSensitiveDataLogging": true, "SeedingMode": "AddIfNotExists",
"PagingConfiguration": { "EnableSensitiveDataLogging": true,
"DefaultPageSize": 20, "PagingConfiguration": {
"MaxAvailablePageSize": 400, "DefaultPageSize": 20,
"MinAvailablePageSize": 5 "MaxAvailablePageSize": 400,
}, "MinAvailablePageSize": 5
"GraphQLBasePath": "/graphs" },
}, "GraphQLBasePath": "/graphs"
"HttpServiceConfiguration": { },
"DisableSSLCheck": true, "HttpServiceConfiguration": {
"DefaultClientTimeout": -1 "DisableSSLCheck": true,
}, "DefaultClientTimeout": -1
"IdentityServiceConfiguration": { },
"Authority": "https://172.18.0.151", "IdentityServiceConfiguration": {
"ApiName": "xSaherElmAPI", "Authority": "https://172.18.0.151",
"ApiSecret": "s@H@1694056", "ApiName": "xSaherElmAPI",
"ClientId": "xSaherElmAPIClient", "ApiSecret": "s@H@1694056",
"ClientSecret": "s@H@1694056", "ClientId": "xSaherElmAPIClient",
"XPoweredValue": "SaherElmITCenter", "ClientSecret": "s@H@1694056",
"XRevisionSecretKey": "SaherElmITCenter@1694056", "XPoweredValue": "SaherElmITCenter",
"DefaultClientTimeout": -1 "XRevisionSecretKey": "SaherElmITCenter@1694056",
}, "DefaultClientTimeout": -1
"PushServiceConfiguration": { },
"BaseRoute": "hubs", "PushServiceConfiguration": {
"AddSupportMessageProtocol": true "BaseRoute": "hubs",
}, "AddSupportMessageProtocol": true
"StorageConfiguration": { },
"Authority": "https://api.saherelm.ir", "StorageConfiguration": {
"IdentityAuthority": "https://ids.saherelm.ir", "Authority": "https://api.saherelm.ir",
"Storage": "Storage", "IdentityAuthority": "https://ids.saherelm.ir",
"Temp": "Temp", "Storage": "Storage",
"Thumb": "Thumb", "Temp": "Temp",
"Uploads": "Uploads", "Thumb": "Thumb",
"Widgets": "Widgets", "Uploads": "Uploads",
"Image": "Image", "Widgets": "Widgets",
"Audio": "Audio", "Image": "Image",
"Video": "Video", "Audio": "Audio",
"Document": "Document", "Video": "Video",
"FilePrefix": "xSaherElm_", "Document": "Document",
"ThumbPrefix": "Thumb_", "FilePrefix": "xSaherElm_",
"ThumbSize": 512, "ThumbPrefix": "Thumb_",
"ThumbQuality": 72, "ThumbSize": 512,
"MaxFileSize": 41943040 "ThumbQuality": 72,
}, "MaxFileSize": 41943040
"TermsAndConditionsService": { },
"ResourceTitle": "terms_and_conditions", "TermsAndConditionsService": {
"SeedingMode": "AddIfNotExists", "ResourceTitle": "terms_and_conditions",
"TermsAndConditions": [ "SeedingMode": "AddIfNotExists",
{ "TermsAndConditions": [
"Language": "fa-IR", {
"TranslatedValue": "شرایط و ضوابط ثبت نام در سامانه" "Language": "fa-IR",
} "TranslatedValue": "شرایط و ضوابط ثبت نام در سامانه"
] }
}, ]
"CategoryServiceConfiguration": { },
"Categories": [], "CategoryServiceConfiguration": {
"SubCategories": [ "Categories": [],
{ "SubCategories": [
"titles": { {
"locales": [ "titles": {
{ "locales": [
"language": "fa-IR", {
"value": "ورزشی" "language": "fa-IR",
} "value": "ورزشی"
] }
}, ]
"descriptions": { },
"locales": [ "descriptions": {
{ "locales": [
"language": "fa-IR", {
"value": "موارد مرتبط با ورزش" "language": "fa-IR",
} "value": "موارد مرتبط با ورزش"
] }
}, ]
"category": { },
"titles": { "category": {
"locales": [ "titles": {
{ "locales": [
"language": "fa-IR", {
"value": "خبر" "language": "fa-IR",
} "value": "خبر"
] }
}, ]
"descriptions": { },
"locales": [ "descriptions": {
{ "locales": [
"language": "fa-IR", {
"value": "اخبار در این گروه قرار می گیرند" "language": "fa-IR",
} "value": "اخبار در این گروه قرار می گیرند"
] }
} ]
} }
} }
] }
}, ]
"ServicesConfiguration": { },
"SummaryEndsWdith": " ...", "ServicesConfiguration": {
"ContentSummaryMaxLength": 255 "SummaryEndsWdith": " ...",
}, "ContentSummaryMaxLength": 255
"AIServiceConfiguration": { },
"Url": "https://localhost:6001/api/v1/ai", "AIServiceConfiguration": {
"XPoweredValue": "SaherElmITCenter", "Url": "https://localhost:6001/api/v1/ai",
"DefaultClientTimeout": -1 "XPoweredValue": "SaherElmITCenter",
}, "DefaultClientTimeout": -1
"BotServiceConfiguration": { },
"Token": "57317004:D2I9H0KWq2rTB44hHlZ7fOCa9oTgUU6RGIg", "BotServiceConfiguration": {
"BaseRoute": "https://tapi.bale.ai", "VerificationCodeTTL": 5,
"SendAlertRoute": "/bot{xToken}/sendMessage" "DefaultClientTimeout": 3600,
}, "BaseRoute": "https://tapi.bale.ai",
"LoggingServiceConfiguration": { "Token": "57317004:D2I9H0KWq2rTB44hHlZ7fOCa9oTgUU6RGIg"
"Enabled": true, },
"MinimumLevel": "Information", "LoggingServiceConfiguration": {
"Queue": { "Enabled": true,
"Enabled": true, "MinimumLevel": "Information",
"Capacity": 10000, "Queue": {
"ShutdownTimeoutSeconds": 10 "Enabled": true,
}, "Capacity": 10000,
"File": { "ShutdownTimeoutSeconds": 10
"Enabled": true, },
"Format": "Json", "File": {
"Directory": "./Logs", "Enabled": true,
"FileName": "xApi-.log", "Format": "Json",
"MinimumLevel": "Information", "Directory": "./Logs",
"RetainedFileCountLimit": 30 "FileName": "xApi-.log",
}, "MinimumLevel": "Information",
"Database": { "RetainedFileCountLimit": 30
"Enabled": false, },
"TableName": "XLogs", "Database": {
"AutoCreateTable": true, "Enabled": false,
"MinimumLevel": "Warning", "TableName": "XLogs",
"Provider": "Microsoft.Data.Sqlite", "AutoCreateTable": true,
"ConnectionString": "Filename=./Db/XLogs.db" "MinimumLevel": "Warning",
}, "Provider": "Microsoft.Data.Sqlite",
"Event": { "ConnectionString": "Filename=./Db/XLogs.db"
"Enabled": false, },
"Sender": "xApi", "Event": {
"MinimumLevel": "Error", "Enabled": false,
"Topic": "application-logs", "Sender": "xApi",
"Action": "ApplicationLogCreated" "MinimumLevel": "Error",
} "Topic": "application-logs",
}, "Action": "ApplicationLogCreated"
"Logging": { }
"LogLevel": { },
"Default": "Information", "Logging": {
"Microsoft": "Warning", "LogLevel": {
"Microsoft.Hosting.Lifetime": "Information" "Default": "Information",
} "Microsoft": "Warning",
}, "Microsoft.Hosting.Lifetime": "Information"
"AllowedHosts": "*" }
},
"AllowedHosts": "*"
} }