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