Skip to content

Commit

Permalink
Update nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeMBourgeois authored May 27, 2024
1 parent f014334 commit ac0b7ef
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions config/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# nginx.conf
events {
worker_connections 4096; ## Default: 1024
}

http {
types {
module js;
module js;
}
include /etc/nginx/mime.types;

Expand All @@ -16,8 +15,28 @@ http {
gzip_types text/css application/javascript application/json image/svg+xml;
gzip_comp_level 9;
etag on;

location / {
try_files $uri $uri/ /index.html;
}
}
}

server {
listen 443 ssl;
root /usr/share/nginx/html;

ssl_certificate /etc/nginx/ssl/nginx.crt; # Chemin vers votre certificat SSL
ssl_certificate_key /etc/nginx/ssl/nginx.key; # Chemin vers votre clé SSL
ssl_protocols TLSv1.2 TLSv1.3; # Protocole SSL à utiliser
ssl_ciphers HIGH:!aNULL:!MD5;

gzip on;
gzip_types text/css application/javascript application/json image/svg+xml;
gzip_comp_level 9;
etag on;

location / {
try_files $uri $uri/ /index.html;
}
}
}

0 comments on commit ac0b7ef

Please sign in to comment.