From 9c169f5280be99dd26adca3e8792543ffbf48e00 Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Fri, 22 Nov 2024 18:08:12 +0100 Subject: [PATCH] feat(ente): custom CORS proxy for s3 storage --- ente/kustomization.yaml | 1 + ente/resources/cors-proxy/spinapp.yaml | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 ente/resources/cors-proxy/spinapp.yaml diff --git a/ente/kustomization.yaml b/ente/kustomization.yaml index 292bacf..4f0d2bb 100644 --- a/ente/kustomization.yaml +++ b/ente/kustomization.yaml @@ -27,6 +27,7 @@ labels: resources: - resources/namespace.yaml + - resources/cors-proxy/spinapp.yaml - resources/museum/db/db.yaml - resources/museum/db/user.yaml - resources/museum/cache.yaml diff --git a/ente/resources/cors-proxy/spinapp.yaml b/ente/resources/cors-proxy/spinapp.yaml new file mode 100644 index 0000000..9742ffa --- /dev/null +++ b/ente/resources/cors-proxy/spinapp.yaml @@ -0,0 +1,11 @@ +apiVersion: core.spinoperator.dev/v1alpha1 +kind: SpinApp +metadata: + name: s3-cors-proxy +spec: + image: "code.icb4dc0.de/infrastructure/functions:latest" + executor: containerd-shim-spin + replicas: 2 + variables: + - name: s3_endpoint_url + value: "https://fsn1.your-objectstorage.com"