Skip to content

Commit

Permalink
fix: headers set.
Browse files Browse the repository at this point in the history
  • Loading branch information
MoFranky committed Oct 6, 2023
1 parent 4a3ea04 commit 0c05efc
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions utils/yaml-templates/punq-ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
metadata:
annotations:
nginx.ingress.kubernetes.io/cors-allow-headers: DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,Authentication,X-Context-Id
nginx.ingress.kubernetes.io/cors-allow-origin: '*'
nginx.ingress.kubernetes.io/cors-allow-headers: DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,Authentication,X-Context-Id,X-Namespace,X-Podname,X-Container
nginx.ingress.kubernetes.io/cors-allow-origin: "*"
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/rewrite-target: /$1
name: punq-ingress
namespace: punq
spec:
ingressClassName: nginx
rules:
- host: punq.mogenius.dev
http:
paths:
- backend:
service:
name: punq-service
port:
number: 8080
path: /backend/(.*)
pathType: Prefix
- backend:
service:
name: punq-service
port:
number: 8082
path: /websocket/(.*)
pathType: Prefix
- backend:
service:
name: punq-service
port:
number: 8081
path: /(.*)
pathType: Prefix
- host: punq.mogenius.dev
http:
paths:
- backend:
service:
name: punq-service
port:
number: 8080
path: /backend/(.*)
pathType: Prefix
- backend:
service:
name: punq-service
port:
number: 8082
path: /websocket/(.*)
pathType: Prefix
- backend:
service:
name: punq-service
port:
number: 8081
path: /(.*)
pathType: Prefix

0 comments on commit 0c05efc

Please sign in to comment.