Skip to content

Commit

Permalink
try to enforce SSL (ZcashFoundation#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyl authored Feb 5, 2023
1 parent 0915ee9 commit e12a7cc
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
7 changes: 7 additions & 0 deletions k8s/free2z/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ k8s_deploy(
template = "issuer.yaml",
)

k8s_deploy(
name = "frontend-config",
kind = "FrontendConfig",
template = "frontend-config.yaml",
)

k8s_deploy(
name = "ingress",
kind = "Ingress",
Expand Down Expand Up @@ -138,6 +144,7 @@ k8s_objects(
":config",
":secret",
":issuer",
":frontend-config",
":ingress",
":service",
# TODO: no redis yet, cleanup or go?
Expand Down
8 changes: 8 additions & 0 deletions k8s/free2z/frontend-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: networking.gke.io/v1beta1
kind: FrontendConfig
metadata:
name: free2z-frontend-config
spec:
redirectToHttps:
enabled: true
# responseCodeName: RESPONSE_CODE
2 changes: 2 additions & 0 deletions k8s/free2z/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ metadata:
# gcloud compute addresses create free2z-prod --global
kubernetes.io/ingress.global-static-ip-name: free2z-%{NAMESPACE}
cert-manager.io/issuer: letsencrypt-production
# nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
networking.gke.io/v1beta1.FrontendConfig: free2z-frontend-config
spec:
tls:
- secretName: free2z-ssl
Expand Down
2 changes: 1 addition & 1 deletion ts/react/free2z/src/components/MBlockquote.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function MBlockquote(props: any) {
return (
<Paper
sx={{
padding: "0.42em 1em",
padding: "0.42em 1em 0.3em 1em",
margin: "0.42em 0",
// backgroundColor,
// border
Expand Down

0 comments on commit e12a7cc

Please sign in to comment.