mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-05-02 19:02:55 +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() }}
|
if: ${{ github.ref == 'refs/heads/main' && success() }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
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
|
- name: Publish Docker Image
|
||||||
if: ${{ github.ref == 'refs/heads/main' && success() }}
|
if: ${{ github.ref == 'refs/heads/main' && success() }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
docker push ${{ inputs.registry-username }}/${{ inputs.image-name }}:v1.6.6
|
docker push ${{ inputs.registry-username }}/${{ inputs.image-name }}:v1.6.7
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,8 @@
|
|||||||
# https://github.com/Huachao/vscode-restclient
|
# https://github.com/Huachao/vscode-restclient
|
||||||
|
|
||||||
|
// for using kubernetes revers proxy uncomment this gateway
|
||||||
|
# @api-gateway=https://booking-microservices.com
|
||||||
|
|
||||||
@api-gateway=https://localhost:5000
|
@api-gateway=https://localhost:5000
|
||||||
@identity-api=http://localhost:6005
|
@identity-api=http://localhost:6005
|
||||||
@flight-api=https://localhost:5003
|
@flight-api=https://localhost:5003
|
||||||
|
|||||||
@ -15,7 +15,7 @@ spec:
|
|||||||
app: booking
|
app: booking
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: meysamh66/booking-microservices-booking:v1.6.5
|
- image: meysamh66/booking-microservices-booking:v1.6.6
|
||||||
name: booking
|
name: booking
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
|
|||||||
@ -15,7 +15,7 @@ spec:
|
|||||||
app: flight
|
app: flight
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: meysamh66/booking-microservices-flight:v1.6.5
|
- image: meysamh66/booking-microservices-flight:v1.6.6
|
||||||
name: flight
|
name: flight
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
|
|||||||
@ -15,7 +15,7 @@ spec:
|
|||||||
app: identity
|
app: identity
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: meysamh66/booking-microservices-identity:v1.6.5
|
- image: meysamh66/booking-microservices-identity:v1.6.6
|
||||||
name: identity
|
name: identity
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
|
|||||||
@ -15,7 +15,7 @@ spec:
|
|||||||
app: passenger
|
app: passenger
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: meysamh66/booking-microservices-passenger:v1.6.5
|
- image: meysamh66/booking-microservices-passenger:v1.6.6
|
||||||
name: passenger
|
name: passenger
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
|
|||||||
@ -96,12 +96,6 @@ public static class InfrastructureExtensions
|
|||||||
|
|
||||||
app.UseForwardedHeaders();
|
app.UseForwardedHeaders();
|
||||||
|
|
||||||
app.Use((context, next) =>
|
|
||||||
{
|
|
||||||
context.Request.Scheme = "https";
|
|
||||||
return next();
|
|
||||||
});
|
|
||||||
|
|
||||||
app.UseProblemDetails();
|
app.UseProblemDetails();
|
||||||
app.UseSerilogRequestLogging(options =>
|
app.UseSerilogRequestLogging(options =>
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user