btcpayserver-plugin-builder/PluginBuilder/Services/ServerEnvironment.cs
thgO.O 04a64d9178
Handle local loopback plugin downloads
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.
2026-04-26 12:45:37 -03:00

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; }
}