namespace OrBit.MesFileServiceNode.Host.Model
{
public class MimeModifer
{
///
/// 后缀名
///
public string Ext { get; set; }
///
/// ContentType
///
public string Type { get; set; }
///
/// 操作,add或remove
///
public MimeModiferOpts Opt { get; set; }
}
public enum MimeModiferOpts
{
add = 1,
remove = 2
}
public class NodeConfig
{
///
/// mime修改器集合
///
public MimeModifer[] MimeModifiers { get; set; }
///
/// 域名
///
/// The domain.
public string Domain { get; set; }
///
/// 文件根目录
///
/// The root path.
public string PhysicalPath { get; set; }
///
/// 请求根目录
///
/// The request path.
public string VirtualPath { get; set; }
///
/// 缓存秒数
///
/// The cache period.
public int CachePeriod { get; set; }
///
/// 是否启用缩略图
///
public bool EnableThumbnail { get; set; }
///
/// 缩略图后缀
///
public HashSet ThumbnailExts { get; set; }
///
/// 允许上传的IP列表
///
public HashSet AllowIPs { get; set; }
}
}