Files
taxbaik/TaxBaik.Web/appsettings.json
T
kjh2064 0d07b2d26a fix: make API client base URL configurable for green-blue deployments
Previously, all browser clients (AdminDashboardClient, InquiryBrowserClient, etc.)
had hardcoded BaseAddress of http://localhost:5001/taxbaik/api/. This caused
issues when implementing green-blue deployments where ports alternate between
5001/5002.

Changes:
- Add ApiClient:BaseUrl configuration in appsettings.json (default: 5001)
- Update Program.cs to read configuration instead of hardcoding
- All 6 browser clients now use dynamic configuration
- Deployment script prepared for green-blue support (port can be injected via
  ApiClient__BaseUrl environment variable)

Deployment Note:
- For green-blue: Set ApiClient__BaseUrl environment variable before starting
  the service on the alternate port (5002)
- Nginx still routes /taxbaik to the active instance
- Supports zero-downtime deployments

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-28 11:28:22 +09:00

34 lines
921 B
JSON

{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"ConnectionStrings": {
"Default": "Host=localhost;Database=taxbaikdb;Username=taxbaik;Password=taxbaik123"
},
"Jwt": {
"SecretKey": "dev-secret-key-change-in-production-min-32-chars!"
},
"App": {
"PublicBaseUrl": "http://178.104.200.7/taxbaik"
},
"ApiClient": {
"BaseUrl": "http://localhost:5001/taxbaik/api/"
},
"Telegram": {
"BotToken": "",
"ChatId": ""
},
"SiteSettings": {
"PhoneNumber": "010-4122-8268",
"EmailAddress": "taxbaik5668@gmail.com",
"KakaoChannelUrl": "http://pf.kakao.com/_xoxchTX",
"InstagramUrl": "https://www.instagram.com/taxtory5668/",
"CompanyName": "백원숙 세무회계",
"CompanyDescription": "사업자 기장, 부동산 양도세·증여세, 종합소득세 전문 상담"
},
"AllowedHosts": "*"
}