20 lines
490 B
Nginx Configuration File
20 lines
490 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name _;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
gzip on;
|
|
gzip_types text/plain text/css application/json application/javascript text/xml;
|
|
gzip_min_length 1024;
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
location /novel-data/ {
|
|
alias /usr/share/nginx/fiction/;
|
|
charset utf-8;
|
|
}
|
|
location /assets/ {
|
|
expires 30d;
|
|
add_header Cache-Control "public, immutable";
|
|
}
|
|
} |