+12
-5
@@ -1,3 +1,4 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
@@ -8,13 +9,14 @@ data:
|
||||
server {
|
||||
listen 80;
|
||||
root /var/www/html;
|
||||
index index.html;
|
||||
index index.php index.html;
|
||||
|
||||
types {
|
||||
text/html html htm;
|
||||
text/html html htm;
|
||||
text/css css;
|
||||
application/javascript js;
|
||||
application/json json;
|
||||
text/yaml yml yaml;
|
||||
image/png png;
|
||||
image/jpeg jpg jpeg;
|
||||
image/svg+xml svg;
|
||||
@@ -24,9 +26,13 @@ data:
|
||||
font/woff2 woff2;
|
||||
}
|
||||
|
||||
location /VUEJS/myapp/dist/assets/ {
|
||||
alias /var/www/html/VUEJS/myapp/dist/assets/;
|
||||
}
|
||||
|
||||
location /VUEJS/myapp/dist/ {
|
||||
root /var/www/html;
|
||||
try_files $uri $uri/ /VUEJS/myapp/dist/index.html;
|
||||
root /var/www/html;
|
||||
try_files $uri $uri/ /VUEJS/myapp/dist/index.html;
|
||||
}
|
||||
|
||||
location / {
|
||||
@@ -43,4 +49,5 @@ data:
|
||||
location ~ /\.git {
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user