Files
www-ssg/nginx/default.conf

49 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2026-02-28 12:13:24 -06:00
server {
listen 80;
server_name localhost;
absolute_redirect off;
2026-02-28 12:25:31 -06:00
# copies data between one FD and other from within the kernel
# faster than read() + write()
sendfile on;
# send headers in one piece, it is better than sending them one by one
tcp_nopush on;
# don't buffer data sent, good for small data bursts in real time
tcp_nodelay on;
gzip on;
gzip_types
# text/html is always compressed by HttpGzipModule
text/css
text/javascript
text/xml
text/plain
text/x-component
application/javascript
application/x-javascript
application/json
application/xml
application/rss+xml
application/atom+xml
font/truetype
font/opentype
application/vnd.ms-fontobject
image/svg+xml;
2026-02-28 12:13:24 -06:00
location / {
2026-02-28 12:25:31 -06:00
gzip_static on;
2026-02-28 12:13:24 -06:00
root /usr/share/nginx/html;
index index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}