ABP App Settings
紀錄一下上版需要改的 AppSettings 設定檔。
例如: appsettings.Production.json
DbMigrator
{
"ConnectionStrings": {
"Default": "Server=tcp:Test-sqlserver.database.windows.net,1433;Initial Catalog=XXX;Persist Security Info=False;User ID=XXX;Password=XXX;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;"
},
"Redis": {
"Configuration": "Test.redis.cache.windows.net:6380,password=XXX,ssl=True,abortConnect=False"
},
"OpenIddict": {
"Applications": {
"Test_Web": {
"ClientSecret": "XXX",
"RootUrl": "https://Web.azurewebsites.net"
},
"Test_Swagger": {
"RootUrl": "https://Swagger.azurewebsites.net"
}
}
}
}
AuthServer
{
"App": {
"SelfUrl": "https://Auth.azurewebsites.net",
"CorsOrigins": "https://Swagger.azurewebsites.net",
"RedirectAllowedUrls": "https://Swagger.azurewebsites.net,https://Web.azurewebsites.net"
},
"ConnectionStrings": {
"Default": "Server=tcp:Test-sqlserver.database.windows.net,1433;Initial Catalog=Test;Persist Security Info=False;User ID=XXX;Password=XXX;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;"
},
"Redis": {
"Configuration": "Test.redis.cache.windows.net:6380,password=XXX,ssl=True,abortConnect=False"
}
}
HttpApi.Host
{
"App": {
"SelfUrl": "https://Swagger.azurewebsites.net",
"CorsOrigins": "https://Angular.azurewebsites.net"
},
"ConnectionStrings": {
"Default": "Server=tcp:Test-sqlserver.database.windows.net,1433;Initial Catalog=Test;Persist Security Info=False;User ID=XXX;Password=XXX;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;"
},
"Redis": {
"Configuration": "Test.redis.cache.windows.net:6380,password=XXX,ssl=True,abortConnect=False"
},
"AuthServer": {
"Authority": "https://Auth.azurewebsites.net",
"MetaAddress": "https://Auth.azurewebsites.net"
}
}
Web
{
"App": {
"SelfUrl": "https://Web.azurewebsites.net"
},
"RemoteServices": {
"Default": {
"BaseUrl": "https://Swagger.azurewebsites.net/"
},
"AbpAccountPublic": {
"BaseUrl": "https://Auth.azurewebsites.net/"
}
},
"Redis": {
"Configuration": "Test.redis.cache.windows.net:6380,password=XXX,ssl=True,abortConnect=False"
},
"AuthServer": {
"Authority": "https://Auth.azurewebsites.net"
}
}
備註
Last modified: 27 September 2024