1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-06 05:28:15 -05:00

revert prefixing service names with bitwarden-

This commit is contained in:
Kyle Spearrin 2017-12-21 11:18:36 -05:00
parent 8609614711
commit 3425e95bf6
4 changed files with 17 additions and 17 deletions

View File

@ -87,7 +87,7 @@ namespace Bit.Setup
version: '3' version: '3'
services: services:
bitwarden-mssql: mssql:
image: bitwarden/mssql:{CoreVersion} image: bitwarden/mssql:{CoreVersion}
container_name: bitwarden-mssql container_name: bitwarden-mssql
restart: always restart: always
@ -110,21 +110,21 @@ services:
- mssql.env - mssql.env
- ../env/mssql.override.env - ../env/mssql.override.env
bitwarden-web: web:
image: bitwarden/web:{WebVersion} image: bitwarden/web:{WebVersion}
container_name: bitwarden-web container_name: bitwarden-web
restart: always restart: always
volumes: volumes:
- ../web:/etc/bitwarden/web - ../web:/etc/bitwarden/web
bitwarden-attachments: attachments:
image: bitwarden/attachments:{CoreVersion} image: bitwarden/attachments:{CoreVersion}
container_name: bitwarden-attachments container_name: bitwarden-attachments
restart: always restart: always
volumes: volumes:
- ../core/attachments:/etc/bitwarden/core/attachments - ../core/attachments:/etc/bitwarden/core/attachments
bitwarden-api: api:
image: bitwarden/api:{CoreVersion} image: bitwarden/api:{CoreVersion}
container_name: bitwarden-api container_name: bitwarden-api
restart: always restart: always
@ -134,7 +134,7 @@ services:
- global.env - global.env
- ../env/global.override.env - ../env/global.override.env
bitwarden-identity: identity:
image: bitwarden/identity:{CoreVersion} image: bitwarden/identity:{CoreVersion}
container_name: bitwarden-identity container_name: bitwarden-identity
restart: always restart: always
@ -145,12 +145,12 @@ services:
- global.env - global.env
- ../env/global.override.env - ../env/global.override.env
bitwarden-icons: icons:
image: bitwarden/icons:{CoreVersion} image: bitwarden/icons:{CoreVersion}
container_name: bitwarden-icons container_name: bitwarden-icons
restart: always restart: always
bitwarden-nginx: nginx:
image: bitwarden/nginx:{CoreVersion} image: bitwarden/nginx:{CoreVersion}
container_name: bitwarden-nginx container_name: bitwarden-nginx
restart: always restart: always

View File

@ -35,7 +35,7 @@ namespace Bit.Setup
private void Init(bool forInstall) private void Init(bool forInstall)
{ {
var dbConnectionString = Helpers.MakeSqlConnectionString("bitwarden-mssql", "vault", "sa", DatabasePassword); var dbConnectionString = Helpers.MakeSqlConnectionString("mssql", "vault", "sa", DatabasePassword);
_globalValues = new Dictionary<string, string> _globalValues = new Dictionary<string, string>
{ {
["globalSettings__baseServiceUri__vault"] = Url, ["globalSettings__baseServiceUri__vault"] = Url,
@ -125,7 +125,7 @@ globalSettings__selfHosted=true
globalSettings__baseServiceUri__vault=http://localhost globalSettings__baseServiceUri__vault=http://localhost
globalSettings__baseServiceUri__api=http://localhost/api globalSettings__baseServiceUri__api=http://localhost/api
globalSettings__baseServiceUri__identity=http://localhost/identity globalSettings__baseServiceUri__identity=http://localhost/identity
globalSettings__baseServiceUri__internalIdentity=http://bitwarden-identity globalSettings__baseServiceUri__internalIdentity=http://identity
globalSettings__pushRelayBaseUri=https://push.bitwarden.com globalSettings__pushRelayBaseUri=https://push.bitwarden.com
globalSettings__installation__identityUri=https://identity.bitwarden.com globalSettings__installation__identityUri=https://identity.bitwarden.com
"); ");

View File

@ -169,29 +169,29 @@ server {{
sw.WriteLine($@" sw.WriteLine($@"
location / {{ location / {{
proxy_pass http://bitwarden-web/; proxy_pass http://web/;
}} }}
location = /app-id.json {{ location = /app-id.json {{
proxy_pass http://bitwarden-web/app-id.json; proxy_pass http://web/app-id.json;
proxy_hide_header Content-Type; proxy_hide_header Content-Type;
add_header Content-Type $fido_content_type; add_header Content-Type $fido_content_type;
}} }}
location /attachments/ {{ location /attachments/ {{
proxy_pass http://bitwarden-attachments/; proxy_pass http://attachments/;
}} }}
location /api/ {{ location /api/ {{
proxy_pass http://bitwarden-api/; proxy_pass http://api/;
}} }}
location /identity/ {{ location /identity/ {{
proxy_pass http://bitwarden-identity/; proxy_pass http://identity/;
}} }}
location /icons/ {{ location /icons/ {{
proxy_pass http://bitwarden-icons/; proxy_pass http://icons/;
}} }}
}}"); }}");
} }

View File

@ -233,9 +233,9 @@ namespace Bit.Setup
var dbPass = Helpers.GetValueFronEnvFile("mssql", "SA_PASSWORD"); var dbPass = Helpers.GetValueFronEnvFile("mssql", "SA_PASSWORD");
var masterConnectionString = Helpers.MakeSqlConnectionString( var masterConnectionString = Helpers.MakeSqlConnectionString(
"bitwarden-mssql", "master", "sa", dbPass ?? string.Empty); "mssql", "master", "sa", dbPass ?? string.Empty);
var vaultConnectionString = Helpers.MakeSqlConnectionString( var vaultConnectionString = Helpers.MakeSqlConnectionString(
"bitwarden-mssql", "vault", "sa", dbPass ?? string.Empty); "mssql", "vault", "sa", dbPass ?? string.Empty);
using(var connection = new SqlConnection(masterConnectionString)) using(var connection = new SqlConnection(masterConnectionString))
{ {