iXserverLoopEnv/config/ixserver/overrides.psd1

46 lines
3.3 KiB
PowerShell
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# deploy 时盖到 run\ixserver\Web.config 上的键(方案附录 A)。只覆盖这里列出的,其余沿用 API\Web.config。
# {RunData} 由 loop.ps1 换成 run\data 的绝对路径;{AbpPort} 等换成 config\loop.psd1 里的端口。
@{
# 只替换 provider connection string 里的 data source / initial catalog / 凭据,metadata 部分不动
ConnectionString = @{
Name = 'iXsocialEntities'
DataSource = '(local)\SQLEXPRESS'
InitialCatalog = 'iXserverLoop'
UserId = 'dev'
Password = '123456'
}
AppSettings = @{
# ---- OAuth / ABP:iss 必须逐字等于本地 ABP 签出 token 的 iss,统一用 localhost,不带结尾斜杠
'OAuth_Authority' = 'https://localhost:{AbpPort}'
'Abp_TokenManager_TokenEndPoint' = 'https://localhost:{AbpPort}/connect/token'
'Abp_TokenManager_RequestParas' = 'grant_type=password,response_type=token,username={AbpAdminUser},password={AbpAdminPassword},scope=FX,client_id=FX_App,client_secret={FxAppClientSecret}'
'Abp_APIUrl' = 'https://localhost:{AbpPort}/'
'AbpServiceAccountChatMessageProvider_API_GreetingUrl' = 'https://localhost:{AbpPort}/api/chat-service-account/messages/get-greeting-messages-by-code?chatServiceAccountCode={0}&cultureName={1}'
'AbpServiceAccountChatMessageProvider_API_GoodbyUrl' = 'https://localhost:{AbpPort}/api/chat-service-account/messages/get-goodby-messages-by-code?chatServiceAccountCode={0}&cultureName={1}'
# ---- IG 出站打到 IG 模拟(依赖 InstagramMessagerApi 的 Instagram_GraphApiBaseUrl)
'Instagram_GraphApiBaseUrl' = 'http://127.0.0.1:{IgMockPort}/v16.0'
# ---- 第三方 chatbot
'ThirdPartyChatbot_EnforceAuthorization' = 'true'
'ThirdPartyChatbot_WebhookRetryEnabled' = 'false' # S3 时改成 true 再 deploy -ConfigOnly
'Curl_ExePath' = 'C:\Windows\System32\curl.exe'
# ---- 落盘目录:一律落在 run\data,不沿用 D:\...
'LogFileLocation' = '{RunData}\API_Log\'
'TempFolder' = '{RunData}\API_TempFolder\'
'FileFolder' = '{RunData}\API_FileFolder\'
'DbTimeLogLocation' = '{RunData}\API_Log_DB\'
'AutoChatJsonSetting_JsonStoreDir' = '{RunData}\TicketJsonDir'
# ---- 自身地址:上传文件的访问地址要能从本机打开
'ApiUrl' = 'http://localhost:{IxserverPort}/'
'UploadFilesVirtualFolder' = 'http://localhost:{IxserverPort}/FileData/'
'SocketServerUrl' = 'ws://localhost:{WebSocketPort}'
'SocketWebSiteUrl' = 'http://localhost:{IxserverPort}'
'APIChatbotWebHook' = 'http://localhost:{IxserverPort}/ai/service/webhook'
'WebSocketPort' = '{WebSocketPort}'
}
}