diff --git a/configmap.yml b/configmap.yml index 9d3d886..109b9a3 100644 --- a/configmap.yml +++ b/configmap.yml @@ -7,11 +7,10 @@ data: default.conf: | server { listen 80; + root /var/www/html; - index index.html; - - # Vue SPA unique + # Vue SPA location /VUEJS/ { alias /var/www/html/VUEJS/myapp/dist/; index index.html; @@ -21,12 +20,18 @@ data: # assets Vite location /VUEJS/assets/ { alias /var/www/html/VUEJS/myapp/dist/assets/; + access_log off; expires 1y; add_header Cache-Control "public"; } + # favicon + location = /VUEJS/favicon.ico { + alias /var/www/html/VUEJS/myapp/dist/favicon.ico; + } + + # STOP PHP fallback (important) location ~ \.php$ { - fastcgi_pass 127.0.0.1:9000; - include fastcgi_params; + return 404; } } \ No newline at end of file