includes qbit collector fix (#169)

This commit is contained in:
iPromKnight
2024-03-26 10:17:04 +00:00
committed by GitHub
parent c3e58e4234
commit e1e718cd22
4 changed files with 11 additions and 11 deletions

View File

@@ -43,4 +43,4 @@ export const cacheConfig = {
GLOBAL_KEY_PREFIX: process.env.GLOBAL_KEY_PREFIX || 'jackettio-addon',
}
cacheConfig.REDIS_CONNECTION_STRING = 'redis://' + cacheConfig.REDIS_HOST + ':' + cacheConfig.REDIS_PORT + cacheConfig.REDIS_EXTRA;
cacheConfig.REDIS_CONNECTION_STRING = 'redis://' + cacheConfig.REDIS_HOST + ':' + cacheConfig.REDIS_PORT + '?' + cacheConfig.REDIS_EXTRA;

View File

@@ -17,4 +17,4 @@ RUN addgroup -S qbit && adduser -S -G qbit qbit
USER qbit
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
CMD pgrep -f dotnet || exit 1
ENTRYPOINT ["dotnet", "QbitCollector.dll"]
ENTRYPOINT ["dotnet", "QBitCollector.dll"]

View File

@@ -9,6 +9,6 @@ public class RedisConfiguration
private string Host { get; init; } = Prefix.GetRequiredEnvironmentVariableAsString(HostVariable);
private int PORT { get; init; } = Prefix.GetEnvironmentVariableAsInt(PortVariable, 6379);
private string EXTRA { get; init; } = Prefix.GetOptionalEnvironmentVariableAsString(ExtraVariable, "?abortConnect=false,allowAdmin=true");
public string ConnectionString => $"{Host}:{PORT}{EXTRA}";
private string EXTRA { get; init; } = Prefix.GetOptionalEnvironmentVariableAsString(ExtraVariable, "abortConnect=false,allowAdmin=true");
public string ConnectionString => $"{Host}:{PORT},{EXTRA}";
}