Initial commit: k8s cluster manifests and scripts
This commit is contained in:
14
apps/codimd/manifests/00-codimd-middleware.yaml
Normal file
14
apps/codimd/manifests/00-codimd-middleware.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: codimd-cors
|
||||
namespace: default
|
||||
spec:
|
||||
headers:
|
||||
accessControlAllowMethods: ["GET", "OPTIONS", "PUT", "POST"]
|
||||
accessControlAllowOriginList: ["*"]
|
||||
accessControlAllowHeaders: ["*"]
|
||||
accessControlMaxAge: 100
|
||||
addVaryHeader: true
|
||||
customResponseHeaders:
|
||||
Cache-Control: "no-cache, no-store, must-revalidate"
|
||||
Reference in New Issue
Block a user