diff --git a/cryptide_project/nginx.conf b/cryptide_project/nginx.conf index 08c7506..2f377f8 100644 --- a/cryptide_project/nginx.conf +++ b/cryptide_project/nginx.conf @@ -1,13 +1,25 @@ server { listen 80; - location / { + location /containers/Crypteam-website/ { root /usr/share/nginx/html; index index.html; - try_files $uri $uri/ /index.html; + try_files $uri $uri/ /containers/Crypteam-website/index.html; } - error_page 404 /index.html; + # Ajout du préfixe pour les fichiers JS + location ~ ^/containers/Crypteam-website/static/js/ { + root /usr/share/nginx/html; + try_files $uri $uri/ /containers/Crypteam-website/index.html; + } + + # Ajout du préfixe pour les fichiers CSS + location ~ ^/containers/Crypteam-website/static/css/ { + root /usr/share/nginx/html; + try_files $uri $uri/ /containers/Crypteam-website/index.html; + } + + error_page 404 /containers/Crypteam-website/index.html; location ~ /\. { deny all;