Skip to content

Commit fc6963d

Browse files
Fixes/2.0 (#25)
* Upgrades * Upgrading to stable Yarp 2.0 * Somes fixes. * Fixes
1 parent 7862023 commit fc6963d

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<h3 align="center">Peppermint Yarp reverse-proxy</h3>
2323

2424
<p align="center">
25-
Peppermint is simple and light .NET reverse proxy based on ASP.NET, Kestrel and implement YARP Project.
25+
Peppermint is simple and light .NET reverse proxy based on ASP.NET, Kestrel and implement YARP Project by Microsoft (https://github.com/microsoft/reverse-proxy).
2626
<br />
2727
<a href="https://github.com/alexandrejulien/Peppermint.ReverseProxy"><strong>Explore the docs »</strong></a>
2828
<br />

src/Peppermint.ReverseProxy/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN dotnet build "Peppermint.ReverseProxy.csproj" -c Release -o /app/build
1616
FROM build AS publish
1717
RUN dotnet publish "Peppermint.ReverseProxy.csproj" -c Release --runtime linux-x64 --self-contained true -p:PublishReadyToRun=true -o /app/publish
1818

19-
FROM alpine:latest as alp
19+
FROM alpine:latest AS alp
2020
WORKDIR /app
2121

2222
FROM alp AS final

src/Peppermint.ReverseProxy/Program.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,12 @@ private static void Main(string[] args)
4343
app.UseResponseCaching();
4444

4545
// Register the reverse proxy routes
46-
app.UseEndpoints(endpoints =>
47-
{
48-
endpoints.MapReverseProxy();
49-
});
46+
app.MapReverseProxy();
5047

5148
app.Logger.LogInformation(
5249
message: Logs.Welcome,
5350
DateTime.Now.ToShortTimeString());
51+
5452
app.Run();
5553
}
5654
}

0 commit comments

Comments
 (0)