mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Guard against running current master (#5959)
* Guard against running current master With a longer release cycle for v2, we need to guard people from running master and corrupting their data. This adds a new requirement in that a special config must be set when running master. We will remove when v2 rc is ready. * add envs
This commit is contained in:
@@ -45,6 +45,12 @@ namespace BTCPayServer
|
||||
#endif
|
||||
conf = confBuilder.Build();
|
||||
|
||||
|
||||
var confirm = conf.GetOrDefault<bool>("EXPERIMENTALV2_CONFIRM", false);
|
||||
if(!confirm)
|
||||
{
|
||||
throw new ConfigException("You are running an experimental version of BTCPay Server that is the basis for v2. Many things will change and break, including irreversible database migrations. THERE IS NO WAY BACK. Please confirm you understand this by setting the setting EXPERIMENTALV2_CONFIRM=true");
|
||||
}
|
||||
var builder = new WebHostBuilder()
|
||||
.UseKestrel()
|
||||
.UseConfiguration(conf)
|
||||
|
||||
Reference in New Issue
Block a user