mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-17 16:36:25 +08:00
Merge pull request #206 from meysamhadeli/develop
fix: Fix tls error in kubernetes
This commit is contained in:
commit
2464cde8ad
@ -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.6.6 -f "${{ github.workspace }}/${{ inputs.dockerfile-path }}" .
|
||||
docker build -t ${{ inputs.registry-username }}/${{ inputs.image-name }}:v1.6.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.6.6
|
||||
docker push ${{ inputs.registry-username }}/${{ inputs.image-name }}:v1.6.7
|
||||
|
||||
|
||||
@ -1,5 +1,9 @@
|
||||
# https://github.com/Huachao/vscode-restclient
|
||||
@api-gateway=https://localhost:5000
|
||||
|
||||
// for using kubernetes revers proxy uncomment this gateway
|
||||
# @api-gateway=https://booking-microservices.com
|
||||
|
||||
@api-gateway=https://localhost:5000
|
||||
@identity-api=http://localhost:6005
|
||||
@flight-api=https://localhost:5003
|
||||
@passenger-api=https://localhost:5012
|
||||
|
||||
@ -15,7 +15,7 @@ spec:
|
||||
app: booking
|
||||
spec:
|
||||
containers:
|
||||
- image: meysamh66/booking-microservices-booking:v1.6.5
|
||||
- image: meysamh66/booking-microservices-booking:v1.6.6
|
||||
name: booking
|
||||
ports:
|
||||
- containerPort: 80
|
||||
|
||||
@ -15,7 +15,7 @@ spec:
|
||||
app: flight
|
||||
spec:
|
||||
containers:
|
||||
- image: meysamh66/booking-microservices-flight:v1.6.5
|
||||
- image: meysamh66/booking-microservices-flight:v1.6.6
|
||||
name: flight
|
||||
ports:
|
||||
- containerPort: 80
|
||||
|
||||
@ -15,7 +15,7 @@ spec:
|
||||
app: identity
|
||||
spec:
|
||||
containers:
|
||||
- image: meysamh66/booking-microservices-identity:v1.6.5
|
||||
- image: meysamh66/booking-microservices-identity:v1.6.6
|
||||
name: identity
|
||||
ports:
|
||||
- containerPort: 80
|
||||
|
||||
@ -15,7 +15,7 @@ spec:
|
||||
app: passenger
|
||||
spec:
|
||||
containers:
|
||||
- image: meysamh66/booking-microservices-passenger:v1.6.5
|
||||
- image: meysamh66/booking-microservices-passenger:v1.6.6
|
||||
name: passenger
|
||||
ports:
|
||||
- containerPort: 80
|
||||
|
||||
@ -96,12 +96,6 @@ public static class InfrastructureExtensions
|
||||
|
||||
app.UseForwardedHeaders();
|
||||
|
||||
app.Use((context, next) =>
|
||||
{
|
||||
context.Request.Scheme = "https";
|
||||
return next();
|
||||
});
|
||||
|
||||
app.UseProblemDetails();
|
||||
app.UseSerilogRequestLogging(options =>
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user