Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SachaWildCode committed Jun 19, 2024
1 parent 51dc139 commit 8fc332d
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,16 @@ http {

sendfile on;
keepalive_timeout 65;
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
gzip_min_length 256;

server {
listen 80;
server_name heartlink.slghive.fr;
server_name heartlink.slghive.fr;

location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}

location ~* \.(?:manifest|appcache|html?|xml|json)$ {
expires -1;
# access_log logs/static.log; # Uncomment if you want to log static file access
}

location ~* \.(?:css|js|woff2?|ttf|otf|eot|ico|svg|gif|jpe?g|png)$ {
expires 1y;
access_log off;
add_header Cache-Control "public";
}

error_page 500 502 503 504 /50x.html;
Expand Down

0 comments on commit 8fc332d

Please sign in to comment.