-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
60becd3
commit 331dd10
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#在http层设置缓存 | ||
http { | ||
…… | ||
…… | ||
…… | ||
client_body_buffer_size 512k; | ||
proxy_connect_timeout 5; | ||
proxy_read_timeout 60; | ||
proxy_send_timeout 5; | ||
proxy_buffer_size 16k; | ||
proxy_buffers 4 64k; | ||
proxy_busy_buffers_size 128k; | ||
proxy_temp_file_write_size 128k; | ||
proxy_temp_path /home/cache/temp;#绝对路径 需要读写权限 | ||
proxy_cache_path /home/cache/path levels=1:2 keys_zone=cache_one:10m inactive=7d max_size=1g; | ||
…… | ||
…… | ||
…… | ||
} |