Add an explicit local artifact download proxy flag for development and tests. Keep the public download endpoint as a redirect while routing enabled loopback artifacts through the internal proxy.
14 lines
442 B
C#
14 lines
442 B
C#
namespace PluginBuilder.Services;
|
|
|
|
public class ServerEnvironment
|
|
{
|
|
public ServerEnvironment(IConfiguration configuration)
|
|
{
|
|
CheatMode = configuration.GetValue<bool?>("CHEAT_MODE") ?? false;
|
|
EnableLocalArtifactDownloadProxy = configuration.GetValue<bool?>("ENABLE_LOCAL_ARTIFACT_DOWNLOAD_PROXY") ?? false;
|
|
}
|
|
|
|
public bool CheatMode { get; set; }
|
|
public bool EnableLocalArtifactDownloadProxy { get; set; }
|
|
}
|