Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
vbreuss committed Mar 30, 2024
1 parent 1a83d11 commit b561315
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public async Task<IActionResult> OnPullRequestChanged(
return BadRequest($"Only public repositories from '{RepositoryOwner}' are supported!");
}

using var client = _clientFactory.CreateClient();
using var client = _clientFactory.CreateClient("Proxied");

var owner = pullRequestModel.Payload.Repository.Owner.Login;
var repo = pullRequestModel.Payload.Repository.Name;
Expand Down
8 changes: 7 additions & 1 deletion Source/Testably.Server/Program.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System.Net;
using System.Reflection;
using System.Text.Json;
using Serilog;
Expand All @@ -14,8 +15,13 @@ public static void Main(string[] args)

var builder = WebApplication.CreateBuilder(args);

var webProxy = new WebProxy("http://winproxy.server.lan:3128");
// Add services to the container.
builder.Services.AddHttpClient();
builder.Services.AddHttpClient("Proxied")
.ConfigurePrimaryHttpMessageHandler(() => new HttpClientHandler()
{
Proxy = webProxy
});
builder.Services.AddRazorPages();
builder.Services.AddControllers()
.AddJsonOptions(o
Expand Down

0 comments on commit b561315

Please sign in to comment.