From 63dcd0f13f0d7c1033c98a24cd9c9916dfa9e998 Mon Sep 17 00:00:00 2001 From: xRain Date: Wed, 29 Jun 2022 02:50:15 +0800 Subject: [PATCH] update minio, default all option to false; --- Configurations/SimApiOptions.cs | 21 +++++++++++++++------ SimApi.csproj | 2 +- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/Configurations/SimApiOptions.cs b/Configurations/SimApiOptions.cs index c003dee..526cbf9 100644 --- a/Configurations/SimApiOptions.cs +++ b/Configurations/SimApiOptions.cs @@ -4,15 +4,24 @@ namespace SimApi.Configs { public class SimApiOptions { - public bool EnableCors { get; set; } = true; + public bool EnableCors { get; set; } = false; + public bool EnableSimApiAuth { get; set; } = false; - public bool EnableSimApiDoc { get; set; } = true; - public bool EnableSimApiException { get; set; } = true; + + public bool EnableSimApiDoc { get; set; } = false; + + public bool EnableSimApiException { get; set; } = false; + public bool EnableSimApiStorage { get; set; } = false; - public bool EnableForwardHeaders { get; set; } = true; - public bool EnableLowerUrl { get; set; } = true; - public bool EnableLogger { get; set; } = true; + + public bool EnableForwardHeaders { get; set; } = false; + + public bool EnableLowerUrl { get; set; } = false; + + public bool EnableLogger { get; set; } = false; + public SimApiDocOptions SimApiDocOptions { get; set; } = new SimApiDocOptions(); + public SimApiStorageOptions SimApiStorageOptions { get; set; } = new SimApiStorageOptions(); diff --git a/SimApi.csproj b/SimApi.csproj index e6f9eea..5992d71 100644 --- a/SimApi.csproj +++ b/SimApi.csproj @@ -27,7 +27,7 @@ - +