implement Phase 1-2
This commit is contained in:
parent
41573b3c4f
commit
b976cf3124
23 changed files with 1291 additions and 79 deletions
21
backend/WordVersioning.Api/Services/MinioOptions.cs
Normal file
21
backend/WordVersioning.Api/Services/MinioOptions.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
namespace WordVersioning.Api.Services;
|
||||
|
||||
/// <summary>Config การเชื่อม MinIO — bind จาก section "MinIO" ใน appsettings/env
|
||||
/// (rule: ห้าม hardcode — deploy ได้โดยไม่แก้โค้ด เช่น MinIO__Endpoint)</summary>
|
||||
public class MinioOptions
|
||||
{
|
||||
public const string SectionName = "MinIO";
|
||||
|
||||
/// <summary>host:port ไม่รวม scheme (เช่น localhost:9000 หรือ minio:9000)</summary>
|
||||
public string Endpoint { get; set; } = "localhost:9000";
|
||||
|
||||
public string AccessKey { get; set; } = string.Empty;
|
||||
|
||||
public string SecretKey { get; set; } = string.Empty;
|
||||
|
||||
public bool UseSSL { get; set; }
|
||||
|
||||
public string VersionsBucket { get; set; } = "docx-versions";
|
||||
|
||||
public string TemplatesBucket { get; set; } = "docx-templates";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue