Skip to content

Commit

Permalink
Update nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeMBourgeois authored Jul 5, 2024
1 parent f09bc55 commit 61bbd60
Showing 1 changed file with 11 additions and 21 deletions.
32 changes: 11 additions & 21 deletions config/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
# nginx.conf
events {
worker_connections 4096; ## Default: 1024
}

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

server {
listen 80;
root /usr/share/nginx/html;
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;
}
server {
listen 8080 default_server;
server_name /usr/share/nginx/html;
root /usr/share/nginx/html;
index index.html;
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 61bbd60

Please sign in to comment.