SeaweedFS CORS fix?
This commit is contained in:
@@ -30,6 +30,8 @@ spec:
|
|||||||
value: 'seaweed.innovation-hub-niedersachsen.de-tls'
|
value: 'seaweed.innovation-hub-niedersachsen.de-tls'
|
||||||
- name: master.ingress.annotations.traefik\.ingress\.kubernetes\.io\/router\.entrypoints
|
- name: master.ingress.annotations.traefik\.ingress\.kubernetes\.io\/router\.entrypoints
|
||||||
value: websecure
|
value: websecure
|
||||||
|
- name: master.ingress.annotations.traefik\.ingress\.kubernetes\.io\/router\.middlewares
|
||||||
|
value: seaweedfs-seaweedfs-cors@kubernetescrd
|
||||||
- name: security.enabled
|
- name: security.enabled
|
||||||
value: 'true'
|
value: 'true'
|
||||||
- name: security.corsAllowedOrigins
|
- name: security.corsAllowedOrigins
|
||||||
@@ -62,7 +64,7 @@ spec:
|
|||||||
- name: s3.ingress.annotations.traefik\.ingress\.kubernetes\.io\/router\.entrypoints
|
- name: s3.ingress.annotations.traefik\.ingress\.kubernetes\.io\/router\.entrypoints
|
||||||
value: websecure
|
value: websecure
|
||||||
- name: s3.ingress.annotations.traefik\.ingress\.kubernetes\.io\/router\.middlewares
|
- name: s3.ingress.annotations.traefik\.ingress\.kubernetes\.io\/router\.middlewares
|
||||||
value: 'seaweedfs-stripprefix@kubernetescrd'
|
value: seaweedfs-seaweedfs-cors@kubernetescrd,seaweedfs-stripprefix@kubernetescrd
|
||||||
- name: mariadb.auth.rootPassword
|
- name: mariadb.auth.rootPassword
|
||||||
value: 'InnoHubSEAWEEDFS_2024!'
|
value: 'InnoHubSEAWEEDFS_2024!'
|
||||||
- name: mariadb.auth.username
|
- name: mariadb.auth.username
|
||||||
|
|||||||
27
config/seaweedfs/seaweedfs-cors.yaml
Normal file
27
config/seaweedfs/seaweedfs-cors.yaml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: seaweedfs-cors
|
||||||
|
namespace: seaweedfs
|
||||||
|
spec:
|
||||||
|
headers:
|
||||||
|
accessControlAllowMethods:
|
||||||
|
- GET
|
||||||
|
- POST
|
||||||
|
- PUT
|
||||||
|
- DELETE
|
||||||
|
- HEAD
|
||||||
|
- OPTIONS
|
||||||
|
- PATCH
|
||||||
|
accessControlAllowHeaders:
|
||||||
|
- "*"
|
||||||
|
accessControlExposeHeaders:
|
||||||
|
- ETag
|
||||||
|
- Content-Length
|
||||||
|
- x-amz-request-id
|
||||||
|
- x-amz-id-2
|
||||||
|
- x-amz-meta-*
|
||||||
|
accessControlAllowOriginListRegex:
|
||||||
|
- ".*"
|
||||||
|
addVaryHeader: true
|
||||||
|
accessControlAllowCredentials: false
|
||||||
Reference in New Issue
Block a user