Allow trackers url to be configurable + version bump (#173)

this allows people to use only the udp collection, only the tcp collection, or all.
This commit is contained in:
iPromKnight
2024-03-26 12:17:47 +00:00
committed by GitHub
parent a50b5071b3
commit 9f928f9b66
4 changed files with 14 additions and 12 deletions

View File

@@ -3,7 +3,9 @@ namespace QBitCollector.Features.Qbit;
public class QbitConfiguration
{
private const string Prefix = "QBIT";
private const string ConnectionStringVariable = "HOST";
private const string HOST_VARIABLE = "HOST";
private const string TRACKERS_URL_VARIABLE = "TRACKERS_URL";
public string? Host { get; init; } = Prefix.GetRequiredEnvironmentVariableAsString(ConnectionStringVariable);
public string? Host { get; init; } = Prefix.GetRequiredEnvironmentVariableAsString(HOST_VARIABLE);
public string? TrackersUrl { get; init; } = Prefix.GetRequiredEnvironmentVariableAsString(TRACKERS_URL_VARIABLE);
}