StorageOptions.cs 551 B

12345678910111213141516
  1. namespace SharedKernel.Storage;
  2. /// <summary>
  3. /// 업로드 파일 저장 위치 옵션.
  4. /// appsettings 의 "Storage" 섹션에서 바인딩.
  5. /// BasePath 가 비어있으면 WebHostEnvironment.WebRootPath 로 폴백.
  6. ///
  7. /// 권장: deploy 영향을 받지 않는 외부 경로 사용 (예: F:\antooza-storage).
  8. /// 그래야 Jenkins 가 배포 폴더를 갈아엎어도 업로드 파일이 보존됨.
  9. /// </summary>
  10. public sealed class StorageOptions
  11. {
  12. public const string SectionName = "Storage";
  13. public string? BasePath { get; set; }
  14. }