№ 11131 В разделе
Sysadmin
от November 3rd, 2020,
В подшивках: Kubernetes, Nginx
annotations: nginx.ingress.kubernetes.io/configuration-snippet: | if ($request_uri ~* \.(js|css|gif|jpe?g|png|woff|woff2|ico)) { expires 1M; add_header Cache-Control "public"; } nginx.ingress.kubernetes.io/cors-allow-headers: >- DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,X-CSRF-Token, Authorization nginx.ingress.kubernetes.io/cors-allow-methods: 'GET, PUT, POST, DELETE, PATCH, OPTIONS' nginx.ingress.kubernetes.io/cors-allow-origin: '*' nginx.ingress.kubernetes.io/enable-cors: 'true'
Fortune cookie: You can't underestimate the power of fear. -- Tricia Nixon
Leave a Reply