1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 07:36:14 -05:00

env files for compose. fixes to push relays

This commit is contained in:
Kyle Spearrin
2017-08-11 12:22:59 -04:00
parent 6fe5e3b849
commit 3ac1f87e12
11 changed files with 39 additions and 46 deletions

View File

@ -54,9 +54,9 @@ namespace Setup
_url = _ssl ? $"https://{_domain}" : $"http://{_domain}";
BuildNginxConfig();
Console.Write("Installation ID: ");
Console.Write("Installation id (get it at https://bitwarden.com/host/): ");
_installationId = Console.ReadLine().ToLowerInvariant();
Console.Write("Installation key: ");
Console.Write("Installation key (get it at https://bitwarden.com/host/): ");
_installationKey = Console.ReadLine().ToLowerInvariant();
Console.Write("Do you want to use push notifications? (y/n): ");
_push = Console.ReadLine().ToLowerInvariant() == "y";
@ -272,7 +272,7 @@ globalSettings:attachment:baseUrl={_url}/attachments
globalSettings:dataProtection:directory={_outputDir}/core/aspnet-dataprotection
globalSettings:logDirectory={_outputDir}/core/logs
globalSettings:licenseDirectory={_outputDir}/core/licenses
globalSettings:duo:aKey={Helpers.SecureRandomString(32, alpha: true, numeric: true)}
globalSettings:duo:aKey={Helpers.SecureRandomString(64, alpha: true, numeric: true)}
globalSettings:installation:id={_installationId}
globalSettings:installation:key={_installationKey}
globalSettings:yubico:clientId=REPLACE
@ -280,7 +280,8 @@ globalSettings:yubico:key=REPLACE");
if(!_push)
{
sw.Write("globalSettings:pushRelayBaseUri=REPLACE");
sw.Write(@"
globalSettings:pushRelayBaseUri=REPLACE");
}
}