Skip to content

Commit

Permalink
IndexStr
Browse files Browse the repository at this point in the history
  • Loading branch information
mili-tan committed Jun 26, 2024
1 parent b232ef3 commit 00575be
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Arashi.Aoi/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class Startup
public static HeaderDictionary HeaderDict = new();
public static string IndexStr = File.Exists(SetupBasePath + "index.html")
? File.ReadAllText(SetupBasePath + "index.html")
: "Welcome to ArashiDNS.Aoi";
: "200 OK";

public void ConfigureServices(IServiceCollection services)
{
Expand All @@ -41,12 +41,6 @@ public void ConfigureServices(IServiceCollection services)

HeaderDict.Add("Access-Control-Allow-Origin", "*");

//if (Config.RankEnable)
//{
// var timer = new Timer(600000) { Enabled = true, AutoReset = true };
// timer.Elapsed += (_, _) => DNSRank.Database.Checkpoint();
//}

services.AddMemoryCache();
services.Configure<IpRateLimitOptions>(new ConfigurationBuilder()

Check warning on line 45 in Arashi.Aoi/Startup.cs

View workflow job for this annotation

GitHub Actions / build

Using member 'Microsoft.Extensions.DependencyInjection.OptionsConfigurationServiceCollectionExtensions.Configure<TOptions>(IServiceCollection, IConfiguration)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. TOptions's dependent types may have their members trimmed. Ensure all required members are preserved.
.AddJsonFile("appsettings.json").Build().GetSection("IpRateLimiting"));
Expand Down

0 comments on commit 00575be

Please sign in to comment.