Files
Camilou.fr/configmap.yml
T
Camilla Schoeser fd2ffcd606
Deploy PHP / deploy (push) Successful in 38s
Update: ajout de la route Nginx pour VUEJS
2026-06-09 20:49:35 +02:00

50 lines
1.0 KiB
YAML

---
apiVersion: v1
kind: ConfigMap
metadata:
name: sushi-nginx-config
namespace: sushi
data:
default.conf: |
server {
listen 80;
root /var/www/html;
index index.php index.html;
types {
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;
image/gif gif;
image/webp webp;
font/woff woff;
font/woff2 woff2;
}
location /VUEJS/myapp/dist/ {
alias /var/www/html/VUEJS/myapp/dist/;
try_files $uri $uri/ /VUEJS/myapp/dist/index.html;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.git {
deny all;
}
}