21 lines
443 B
Nginx Configuration File
21 lines
443 B
Nginx Configuration File
|
|
server {
|
||
|
|
listen 80;
|
||
|
|
server_name _;
|
||
|
|
root /usr/share/nginx/html;
|
||
|
|
index index.html;
|
||
|
|
|
||
|
|
location / {
|
||
|
|
try_files $uri $uri/ $uri.html =404;
|
||
|
|
}
|
||
|
|
|
||
|
|
location ~* \.(png|jpg|jpeg|gif|ico|svg|webp)$ {
|
||
|
|
expires 30d;
|
||
|
|
add_header Cache-Control "public, immutable";
|
||
|
|
}
|
||
|
|
|
||
|
|
gzip on;
|
||
|
|
gzip_vary on;
|
||
|
|
gzip_min_length 256;
|
||
|
|
gzip_types text/plain text/css application/javascript text/html image/svg+xml;
|
||
|
|
}
|