1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01:00

attachments build cleanup

This commit is contained in:
Kyle Spearrin 2017-08-08 17:50:40 -04:00
parent fecd5b3a1a
commit e081213615
6 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,2 @@
*
!entrypoint.sh

View File

@ -7,4 +7,5 @@ echo "=================="
& $dir\src\Api\build.ps1
& $dir\src\Identity\build.ps1
& $dir\nginx\build.ps1
& $dir\attachments\build.ps1
& $dir\util\Setup\build.ps1

View File

@ -9,4 +9,5 @@ echo -e "=================="
$DIR/src/Api/build.sh
$DIR/src/Identity/build.sh
$DIR/nginx/build.sh
$DIR/attachments/build.sh
$DIR/util/Setup/build.sh

3
nginx/.dockerignore Normal file
View File

@ -0,0 +1,3 @@
*
!entrypoint.sh
!nginx.conf

View File

@ -12,7 +12,7 @@ namespace Bit.Core.Models.Api
: base("attachment")
{
Id = id;
Url = $"{globalSettings.Attachment.BaseUrl}{cipher.Id}/{id}";
Url = $"{globalSettings.Attachment.BaseUrl}/{cipher.Id}/{id}";
FileName = data.FileName;
Size = data.SizeString;
SizeName = Utilities.CoreHelpers.ReadableBytesSize(data.Size);

3
util/Setup/.dockerignore Normal file
View File

@ -0,0 +1,3 @@
*
!obj/Docker/publish/*
!obj/Docker/empty/