1
0
mirror of https://github.com/bitwarden/server synced 2025-12-24 12:13:17 +00:00

internal api & vault urls. apply to version check

This commit is contained in:
Kyle Spearrin
2018-03-29 08:45:04 -04:00
parent da970c2308
commit 4ce69dac2b
24 changed files with 69 additions and 22 deletions

View File

@@ -68,7 +68,8 @@ namespace Bit.Admin.Controllers
{
try
{
var response = await _httpClient.GetAsync($"{_globalSettings.BaseServiceUri.Vault}/version.json");
var response = await _httpClient.GetAsync(
$"{_globalSettings.BaseServiceUri.InternalVault}/version.json");
if(response.IsSuccessStatusCode)
{
var json = await response.Content.ReadAsStringAsync();

View File

@@ -4,7 +4,9 @@
"vault": "https://vault.bitwarden.com",
"api": "https://api.bitwarden.com",
"identity": "https://identity.bitwarden.com",
"internalIdentity": "https://identity.bitwarden.com"
"internalIdentity": "https://identity.bitwarden.com",
"internalApi": "https://api.bitwarden.com",
"internalVault": "https://vault.bitwarden.com"
},
"braintree": {
"production": true

View File

@@ -8,7 +8,9 @@
"vault": "http://localhost:4001",
"api": "http://localhost:4000",
"identity": "http://localhost:33656",
"internalIdentity": "http://localhost:33656"
"internalIdentity": "http://localhost:33656",
"internalApi": "http://localhost:4000",
"internalVault": "http://localhost:4001"
},
"sqlServer": {
"connectionString": "SECRET"