mirror of
https://github.com/bitwarden/server.git
synced 2024-11-29 13:25:17 +01:00
24 lines
529 B
C#
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
|
|
}};");
|
|
}
|
|
}
|
|
}
|
|
}
|