Skip to content

Commit

Permalink
Upgrade HTTP connections to HTTPS with a redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanFauble committed Nov 5, 2024
1 parent 2db7f0d commit 2e1d511
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions modules/envoy-gateway/resources/http-to-https-redirect.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Upgrades HTTP requests to HTTPS
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: tls-redirect
spec:
parentRefs:
- name: eg
sectionName: http
hostnames:
- "*.sagedpe.org"
rules:
- filters:
- type: RequestRedirect
requestRedirect:
scheme: https
1 change: 1 addition & 0 deletions modules/envoy-gateway/resources/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ resources:
- envoy-proxy.yaml
- gateway.yaml
- traffic-policy.yaml
- http-to-https-redirect.yaml

0 comments on commit 2e1d511

Please sign in to comment.