mirror of
https://github.com/bitwarden/server.git
synced 2024-12-02 13:53:23 +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
|
|
}};");
|
|
}
|
|
}
|
|
}
|
|
}
|