[Unit]
Description=TaxBaik Backend App (.NET 10)
After=network.target

[Service]
Type=simple
User=kjh2064
WorkingDirectory=/home/kjh2064/taxbaik_active
ExecStart=/usr/bin/dotnet TaxBaik.Web.dll
Restart=always
RestartSec=5

# Graceful Shutdown (Hot Deploy용)
TimeoutStopSec=35
KillMode=mixed
KillSignal=SIGTERM

SyslogIdentifier=taxbaik
Environment=ASPNETCORE_ENVIRONMENT=Production
Environment=ASPNETCORE_URLS=http://127.0.0.1:5004
Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
# 아래 줄은 서버에서 직접 편집 (git에 커밋하지 않음)
# Environment=ConnectionStrings__Default=Host=localhost;Database=taxbaikdb;Username=taxbaik;Password=CHANGE_ME

[Install]
WantedBy=multi-user.target
