1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01:00
bitwarden-server/util/Setup/AppSettingsBuilder.cs
2017-12-20 22:48:51 -05:00

24 lines
529 B
C#

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"))
{
sw.Write($@"var bitwardenAppSettings = {{
iconsUri: ""/icons"",
stripeKey: null,
braintreeKey: null,
selfHosted: true
}};");
}
}
}
}