51 lines
3.8 KiB
PowerShell
51 lines
3.8 KiB
PowerShell
# 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'
|
||
# sys_language 启动时把生成的 JS 写进 WebchatPath;写死的 D:\ 不存在会记一条「设备未就绪」
|
||
'WebchatPath' = '{RunData}\Webchat'
|
||
'OffLineFormPath' = '{RunData}\pages\'
|
||
# 仓库里没有 config.json,读不到就记 Error 并退回默认值;指到 LoopEnv 里那份(空对象 = 全用默认值)
|
||
'AppConfigManager_AppConfigJsonFile' = '{LoopRoot}\config\ixserver\config.json'
|
||
|
||
# ---- 自身地址:上传文件的访问地址要能从本机打开
|
||
'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}'
|
||
}
|
||
}
|