File tree Expand file tree Collapse file tree
EventTriangleAPI.Authorization.Presentation
EventTriangleAPI.Consumer.Presentation
EventTriangleAPI.Sender.Presentation Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base
22WORKDIR /app
3- EXPOSE 80
4- EXPOSE 81
3+ EXPOSE 8080
54
65ENV ASPNETCORE_FORWARDEDHEADERS_ENABLED=true
76
Original file line number Diff line number Diff line change 4949builder . Services . AddScoped < RefreshTokenCommandHandler > ( ) ;
5050builder . Services . AddScoped < GetTokenCommandHandler > ( ) ;
5151
52+ // ######################################################## GRPC CONFIGS ########################################################
53+
5254builder . Services . AddGrpc ( ) ;
55+ builder . Logging . AddFilter ( "Grpc" , LogLevel . Debug ) ;
56+
57+ // ######################################################## GRPC CONFIGS ########################################################
58+
5359builder . Services . AddHttpClient ( ) ;
5460
5561builder . Services . AddTicketStore ( ) ;
5662builder . Services . AddHostedServices ( ) ;
5763
58- builder . Logging . AddFilter ( "Grpc" , LogLevel . Debug ) ;
5964
6065// redis configs start
6166
Original file line number Diff line number Diff line change 2626 "AzureAdTokenUrl" : " https://login.microsoftonline.com/b40a105f-0643-4922-8e60-10fc1abf9c4b/oauth2/v2.0/token" ,
2727 "ClientSecret" : " "
2828 },
29- "GrpcChannelAddresses" : " http://event-triangle-sender-service:81 " ,
29+ "GrpcChannelAddresses" : " http://event-triangle-sender-service" ,
3030 "ReverseProxy" : {
3131 "Routes" : {
3232 "route1" : {
Original file line number Diff line number Diff line change 11FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base
22WORKDIR /app
3- EXPOSE 80
3+ EXPOSE 8080
44
55FROM mcr.microsoft.com/dotnet/sdk:10.0 AS publish
66WORKDIR /src
Original file line number Diff line number Diff line change 2222{
2323 o . Conventions . Add ( new RouteTokenTransformerConvention ( new CustomParameterTransformer ( ) ) ) ;
2424} ) ;
25+
2526builder . Services . AddEndpointsApiExplorer ( ) ;
2627builder . Services . AddSwagger ( ) ;
2728builder . Services . AddSignalR ( ) ;
105106 await app . InitializeSeeds ( ) ;
106107}
107108
108- app . Run ( ) ;
109+ app . Run ( ) ;
Original file line number Diff line number Diff line change 11FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base
22WORKDIR /app
3- EXPOSE 80
4- EXPOSE 81
3+ EXPOSE 8080
54
65FROM mcr.microsoft.com/dotnet/sdk:10.0 AS publish
76WORKDIR /src
Original file line number Diff line number Diff line change 1515
1616var builder = WebApplication . CreateBuilder ( args ) ;
1717
18- if ( builder . Environment . EnvironmentName == "Docker" || builder . Environment . EnvironmentName == "Kubernetes" )
18+ builder . WebHost . ConfigureKestrel ( options =>
1919{
20- builder . WebHost . ConfigureKestrel ( options =>
21- {
22- options . ListenAnyIP ( 80 , listenOptions => listenOptions . Protocols = HttpProtocols . Http1 ) ;
23- options . ListenAnyIP ( 81 , listenOptions => listenOptions . Protocols = HttpProtocols . Http2 ) ;
24- } ) ;
25- }
20+ options . ListenAnyIP ( 8080 , listenOptions => listenOptions . Protocols = HttpProtocols . Http1AndHttp2 ) ;
21+ } ) ;
2622
2723var configurationSection = builder . Configuration . GetSection ( AppSettingsConstants . AzureAd ) ;
2824var databaseConnectionString = builder . Configuration [ AppSettingsConstants . DatabaseConnectionString ] ;
You can’t perform that action at this time.
0 commit comments