Files
Abyss/Abyss/Components/Services/Misc/ConfigureService.cs
2025-09-28 22:03:15 +08:00

12 lines
640 B
C#

namespace Abyss.Components.Services.Misc;
public class ConfigureService
{
public string MediaRoot { get; set; } = Environment.GetEnvironmentVariable("MEDIA_ROOT") ?? "/opt";
public string DebugMode { get; set; } = Environment.GetEnvironmentVariable("DEBUG_MODE") ?? "Production";
public string AllowedPorts { get; set; } = Environment.GetEnvironmentVariable("ALLOWED_PORTS") ?? "443"; // Split with ' '
public string Version { get; } = "Alpha v0.1";
public string UserDatabase { get; set; } = "user.db";
public string RaDatabase { get; set; } = "ra.db";
public string IndexDatabase { get; set; } = "index.db";
}