forked from vuestorefront/vue-storefront
-
Notifications
You must be signed in to change notification settings - Fork 1
/
nginx-configmap.yaml
41 lines (35 loc) · 924 Bytes
/
nginx-configmap.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-config
data:
default.conf: |
server {
listen 80;
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none;
gzip on;
gzip_proxied any;
gzip_types
text/css
text/javascript
text/xml
application/javascript
application/json
text/json
text/html;
location / {
proxy_pass http://vue-storefront:3000/;
}
location /assets/ {
proxy_pass http://vue-storefront:3000/assets/;
}
location /api/ {
proxy_pass http://vue-storefront-api:8080/api/;
}
location /img/ {
proxy_pass http://vue-storefront-api:8080/img/;
}
}