Modification nginx.conf
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
61bef5ed85
commit
3763a2b39c
@ -1,26 +1,9 @@
|
|||||||
# Directive globale
|
server {
|
||||||
worker_processes 1;
|
listen 80;
|
||||||
|
|
||||||
events {
|
location /containers/kyllianchabanon-portfolio {
|
||||||
worker_connections 1024;
|
alias /usr/share/nginx/html;
|
||||||
}
|
try_files $uri $uri/ /containers/kyllianchabanon-portfolio/index.html;
|
||||||
|
index index.html;
|
||||||
http {
|
|
||||||
include mime.types;
|
|
||||||
default_type application/octet-stream;
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 80;
|
|
||||||
server_name localhost;
|
|
||||||
|
|
||||||
location /containers/kyllianchabanon-portfolio/ {
|
|
||||||
root /usr/share/nginx/html; # Assure-toi que ce répertoire contient index.html
|
|
||||||
try_files $uri $uri/ /containers/kyllianchabanon-portfolio/index.html; # Redirige vers index.html dans le sous-dossier
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~* \.(css|js|json|jpg|jpeg|png|gif|ico)$ {
|
|
||||||
root /usr/share/nginx/html;
|
|
||||||
try_files $uri =404; # Sert les fichiers statiques correctement
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in new issue