From dd2a0e4215b1f0a7d4717d661fcbfcf340e023cf Mon Sep 17 00:00:00 2001 From: Thomas CHAZOT Date: Tue, 5 Dec 2023 14:24:17 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'cryptide=5Fproject?= =?UTF-8?q?/nginx.conf'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cryptide_project/nginx.conf | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) 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;