mirror of
https://github.com/kenzok8/small-package.git
synced 2026-02-08 07:37:13 +08:00
18 lines
470 B
Plaintext
18 lines
470 B
Plaintext
server {
|
|
listen 8080; #bind prot 绑定的端口
|
|
root /www; #directory 网站路径
|
|
ssl_session_timeout 5m;
|
|
gzip on;
|
|
gzip_types text/plain application/json application/javascript application/x-javascript text/css application/xml text/javascript;
|
|
gzip_proxied any;
|
|
gzip_vary on;
|
|
gzip_comp_level 6;
|
|
gzip_buffers 16 8k;
|
|
gzip_http_version 1.0;
|
|
|
|
location / {
|
|
index index.html index.htm; #默认文件
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
}
|