1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-26 12:55:17 +01:00
bitwarden-server/util/Setup/AppSettingsBuilder.cs

24 lines
529 B
C#
Raw Normal View History

2017-10-24 04:45:59 +02:00
using System;
using System.IO;
namespace Bit.Setup
{
public class AppSettingsBuilder
{
public void Build()
{
Console.WriteLine("Building app settings.");
Directory.CreateDirectory("/bitwarden/web/");
using(var sw = File.CreateText("/bitwarden/web/settings.js"))
{
2017-12-21 04:48:51 +01:00
sw.Write($@"var bitwardenAppSettings = {{
iconsUri: ""/icons"",
2017-10-24 04:45:59 +02:00
stripeKey: null,
braintreeKey: null,
selfHosted: true
}};");
}
}
}
}