Revert public host config

This commit is contained in:
2023-07-31 14:49:04 +01:00
parent 112ed5b80a
commit 055e7b0487
5 changed files with 14 additions and 3 deletions

View File

@ -74,11 +74,17 @@ public class S3DvrStore : IDvrStore
Expires = new DateTime(3000, 1, 1)
});
var ub = new UriBuilder(url)
{
Scheme = _config.PublicHost.Scheme,
Host = _config.PublicHost.Host
};
var tsUpload = sw.Elapsed;
_logger.LogInformation("download={tc:#,##0}ms, probe={pc:#,##0}ms, upload={uc:#,##0}ms", tsDownload.TotalMilliseconds,
tsProbe.TotalMilliseconds, tsUpload.TotalMilliseconds);
return new(new Uri(url), probe.Duration.TotalSeconds);
return new(ub.Uri, probe.Duration.TotalSeconds);
}
}

View File

@ -11,4 +11,6 @@ public class StreamInfo
public string ClientId { get; init; } = null!;
public string StreamId { get; init; } = null!;
public string EdgeIp { get; init; } = null!;
}