fix(ente): properly implement CORS policy
All checks were successful
Renovate / renovate (push) Successful in 1m28s

This commit is contained in:
Peter 2024-11-22 21:59:13 +01:00
parent 1b593c6f9c
commit 10a2941b36
Signed by: prskr
GPG key ID: F56BED6903BC5E37
4 changed files with 2 additions and 30 deletions

View file

@ -1,15 +1,9 @@
{ {
"CORSRules": [ "CORSRules": [
{ {
"AllowedOrigins": ["https://ente.icb4dc0.de"], "AllowedOrigins": ["*"],
"AllowedMethods": ["GET", "PUT", "POST"], "AllowedMethods": ["GET", "PUT", "POST"],
"AllowedHeaders": [ "AllowedHeaders": ["*"],
"Authorization",
"Content-Type",
"x-amz-date",
"x-amz-content-sha256",
"x-amz-user-agent"
],
"ExposeHeaders": [ "ExposeHeaders": [
"x-amz-server-side-encryption", "x-amz-server-side-encryption",
"x-amz-request-id", "x-amz-request-id",

View file

@ -27,8 +27,6 @@ labels:
resources: resources:
- resources/namespace.yaml - resources/namespace.yaml
- resources/cors-proxy/spinexecutor.yaml
- resources/cors-proxy/spinapp.yaml
- resources/museum/db/db.yaml - resources/museum/db/db.yaml
- resources/museum/db/user.yaml - resources/museum/db/user.yaml
- resources/museum/cache.yaml - resources/museum/cache.yaml

View file

@ -1,11 +0,0 @@
apiVersion: core.spinkube.dev/v1alpha1
kind: SpinApp
metadata:
name: s3-cors-proxy
spec:
image: "code.icb4dc0.de/infrastructure/functions:latest"
executor: ente-containerd-shim-spin
replicas: 2
variables:
- name: s3_endpoint_url
value: "https://fsn1.your-objectstorage.com"

View file

@ -1,9 +0,0 @@
apiVersion: core.spinkube.dev/v1alpha1
kind: SpinAppExecutor
metadata:
name: containerd-shim-spin
spec:
createDeployment: true
deploymentConfig:
installDefaultCACerts: true
runtimeClassName: wasmtime-spin-v2