Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

tweak(platform) Add frontendconfig for redirect (#8160)

Aarushiaec715cb2b02
diff --git a/autogpt_platform/infra/helm/autogpt-builder/templates/frontendconfig.yaml b/autogpt_platform/infra/helm/autogpt-builder/templates/frontendconfig.yaml
new file mode 100644
index 0000000000..ee9ae97034
--- /dev/null
+++ b/autogpt_platform/infra/helm/autogpt-builder/templates/frontendconfig.yaml
@@ -0,0 +1,8 @@
+apiVersion: networking.gke.io/v1beta1
+kind: FrontendConfig
+metadata:
+ name: {{ include "autogpt-builder.fullname" . }}-frontend-config
+spec:
+ redirectToHttps:
+ enabled: true
+ responseCodeName: 301
\ No newline at end of file
diff --git a/autogpt_platform/infra/helm/autogpt-builder/values.dev.yaml b/autogpt_platform/infra/helm/autogpt-builder/values.dev.yaml
index d1ddec587f..696d79f0e7 100644
--- a/autogpt_platform/infra/helm/autogpt-builder/values.dev.yaml
+++ b/autogpt_platform/infra/helm/autogpt-builder/values.dev.yaml
@@ -25,6 +25,7 @@ ingress:
kubernetes.io/ingress.global-static-ip-name: "agpt-dev-agpt-builder-ip"
networking.gke.io/managed-certificates: "autogpt-builder-cert"
kubernetes.io/ingress.allow-http: "true"
+ networking.gke.io/v1beta1.FrontendConfig: "autogpt-builder-frontend-config"
hosts:
- host: dev-builder.agpt.co
paths: