Remove public host
This commit is contained in:
@ -58,5 +58,4 @@ public sealed class S3BlobConfig
|
|||||||
public string? Region { get; init; }
|
public string? Region { get; init; }
|
||||||
public string BucketName { get; init; } = "zap-stream-dvr";
|
public string BucketName { get; init; } = "zap-stream-dvr";
|
||||||
public bool DisablePayloadSigning { get; init; }
|
public bool DisablePayloadSigning { get; init; }
|
||||||
public Uri PublicHost { get; init; } = null!;
|
|
||||||
}
|
}
|
||||||
|
@ -75,11 +75,9 @@ public class S3DvrStore : IDvrStore
|
|||||||
|
|
||||||
var tsUpload = sw.Elapsed;
|
var tsUpload = sw.Elapsed;
|
||||||
|
|
||||||
var ret = new Uri(_config.PublicHost, new Uri(url).AbsolutePath);
|
|
||||||
|
|
||||||
_logger.LogInformation("download={tc:#,##0}ms, probe={pc:#,##0}ms, upload={uc:#,##0}ms", tsDownload.TotalMilliseconds,
|
_logger.LogInformation("download={tc:#,##0}ms, probe={pc:#,##0}ms, upload={uc:#,##0}ms", tsDownload.TotalMilliseconds,
|
||||||
tsProbe.TotalMilliseconds, tsUpload.TotalMilliseconds);
|
tsProbe.TotalMilliseconds, tsUpload.TotalMilliseconds);
|
||||||
|
|
||||||
return new(ret, probe.Duration.TotalSeconds);
|
return new(new Uri(url), probe.Duration.TotalSeconds);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,8 +28,7 @@
|
|||||||
"DvrStore": {
|
"DvrStore": {
|
||||||
"ServiceUrl": "http://localhost:9010",
|
"ServiceUrl": "http://localhost:9010",
|
||||||
"AccessKey": "TQcxug1ZAXfnZ5bvc9n5",
|
"AccessKey": "TQcxug1ZAXfnZ5bvc9n5",
|
||||||
"SecretKey": "p7EK4qew6DBkBPqrpRPuJgTOc6ChUlfIcEdAwE7K",
|
"SecretKey": "p7EK4qew6DBkBPqrpRPuJgTOc6ChUlfIcEdAwE7K"
|
||||||
"PublicHost": "http://localhost:9010"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user