mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-11 02:20:20 +08:00
Merge pull request #187 from meysamhadeli/develop
chore: Update identity server
This commit is contained in:
commit
8d1d9d3bc3
@ -43,11 +43,11 @@ runs:
|
||||
if: ${{ github.ref == 'refs/heads/main' && success() }}
|
||||
shell: bash
|
||||
run: |
|
||||
docker build -t ${{ inputs.registry-username }}/${{ inputs.image-name }}:v1.5.6 -f "${{ github.workspace }}/${{ inputs.dockerfile-path }}" .
|
||||
docker build -t ${{ inputs.registry-username }}/${{ inputs.image-name }}:v1.5.7 -f "${{ github.workspace }}/${{ inputs.dockerfile-path }}" .
|
||||
|
||||
- name: Publish Docker Image
|
||||
if: ${{ github.ref == 'refs/heads/main' && success() }}
|
||||
shell: bash
|
||||
run: |
|
||||
docker push ${{ inputs.registry-username }}/${{ inputs.image-name }}:v1.5.6
|
||||
docker push ${{ inputs.registry-username }}/${{ inputs.image-name }}:v1.5.7
|
||||
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
"Port": 5672
|
||||
},
|
||||
"Jwt": {
|
||||
"Authority": "http://booking-microservices.com/identity",
|
||||
"Authority": "http://myidentityserver.com",
|
||||
"Audience": "booking-api",
|
||||
"RequireHttpsMetadata": false
|
||||
},
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
"ConnectionString": "Server=postgres;Port=5432;Database=flight;User Id=postgres;Password=postgres;Include Error Detail=true"
|
||||
},
|
||||
"Jwt": {
|
||||
"Authority": "http://booking-microservices.com/identity",
|
||||
"Authority": "http://myidentityserver.com",
|
||||
"Audience": "flight-api",
|
||||
"RequireHttpsMetadata": false
|
||||
},
|
||||
|
||||
@ -32,6 +32,14 @@
|
||||
"Dsn": "",
|
||||
"MinimumBreadcrumbLevel": "information",
|
||||
"MinimumEventLevel":"error"
|
||||
},
|
||||
"Kestrel": {
|
||||
"Certificates": {
|
||||
"Default": {
|
||||
"Path": "/etc/ssl/certs/localhost.pfx",
|
||||
"Password": "000000"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
|
||||
@ -38,7 +38,7 @@ public static class IdentityServerExtensions
|
||||
.AddResourceOwnerValidator<UserValidator>();
|
||||
|
||||
//ref: https://documentation.openiddict.com/configuration/encryption-and-signing-credentials.html
|
||||
// identityServerBuilder.AddDeveloperSigningCredential();
|
||||
identityServerBuilder.AddDeveloperSigningCredential();
|
||||
|
||||
return services;
|
||||
}
|
||||
|
||||
@ -115,11 +115,11 @@ public static class InfrastructureExtensions
|
||||
|
||||
app.MapGet("/", x => x.Response.WriteAsync(appOptions.Name));
|
||||
|
||||
// app.Use((httpContext, next) =>
|
||||
// {
|
||||
// httpContext.Request.Scheme = "https";
|
||||
// return next();
|
||||
// });
|
||||
app.Use((httpContext, next) =>
|
||||
{
|
||||
httpContext.Request.Scheme = "https";
|
||||
return next();
|
||||
});
|
||||
|
||||
if (env.IsDevelopment())
|
||||
{
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
"ConnectionString": "Server=postgres;Port=5432;Database=persist_message;User Id=postgres;Password=postgres;Include Error Detail=true"
|
||||
},
|
||||
"Jwt": {
|
||||
"Authority": "http://booking-microservices.com/identity",
|
||||
"Authority": "http://myidentityserver.com",
|
||||
"Audience": "passenger-api",
|
||||
"RequireHttpsMetadata": false
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user