fixes for standard configs

This commit is contained in:
Stanley Dimant
2022-08-24 21:43:17 +02:00
parent fd23cca840
commit 5b136685db
6 changed files with 8 additions and 88 deletions

View File

@@ -199,6 +199,8 @@ namespace MareSynchronosServer.Hubs
UploadFileRequest req = new();
req.FileData = ByteString.CopyFrom(await File.ReadAllBytesAsync(tempFileName).ConfigureAwait(false));
File.Delete(tempFileName);
req.Hash = computedHashString;
req.Uploader = AuthenticatedUserId;
_ = await _fileServiceClient.UploadFileAsync(req).ConfigureAwait(false);
}
catch (Exception ex)

View File

@@ -27,7 +27,7 @@
"DbContextPoolSize": 2000,
"CdnFullUrl": "https://<url or ip to your server>/cache/",
"ServiceAddress": "http://localhost:5002",
"StaticFileServiceAddress": "http://localhost:5001"
"StaticFileServiceAddress": "http://localhost:5003"
},
"AllowedHosts": "*",
"Kestrel": {