Skip to content

Commit

Permalink
chore: using geni gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
adeherysh authored Mar 24, 2024
1 parent 73092e6 commit b0c96c9
Showing 1 changed file with 26 additions and 16 deletions.
42 changes: 26 additions & 16 deletions .infra/helm/stg/server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ server:

port: 3000

istio:
injected: true

liveness:
delay: 20

Expand All @@ -23,26 +26,33 @@ server:
service:
enabled: true

ingress:
virtualService:
enabled: true

annotations:
nginx.ingress.kubernetes.io/configuration-snippet: |-
more_set_headers "server: ktbs-dtx-server";
more_set_headers "X-Content-Type-Options: nosniff";
more_set_headers "X-Xss-Protection: 1; mode=block";
more_set_headers "Referrer-Policy: strict-origin-when-cross-origin";
more_set_headers "Content-Security-Policy: upgrade-insecure-requests";
more_set_headers "X-Powered-By: ktbs-dtx";
tls:
- hosts:
- smocker.kitabisa.xyz
gateways:
- backend-gateway/backend-gateway
- geni/gateway

hosts:
- host: "smocker.kitabisa.xyz"
paths:
- "/"
- geni.ktbs.xyz
- geni.kitabisa.xyz

routes:
- match:
- uri:
prefix: /smocker/
retries:
attempts: 3
perTryTimeout: 15s
retryOn: gateway-error
rewrite:
uri: /
route:
- destination:
host: smocker-server-stg
port:
number: 80
weight: 100

autoscaling:
minReplicas: 1
Expand Down

0 comments on commit b0c96c9

Please sign in to comment.