update
This commit is contained in:
parent
484d85cb45
commit
47c17138e7
4 changed files with 15 additions and 86 deletions
|
|
@ -6,6 +6,7 @@ map $http_upgrade $connection_upgrade {
|
|||
default upgrade;
|
||||
'' close;
|
||||
}
|
||||
proxy_cache_path /tmp/nginx_cache levels=1:2 keys_zone=cache1:16m max_size=1g inactive=720m use_temp_path=off;
|
||||
|
||||
server {
|
||||
listen %ip%:%proxy_ssl_port% ssl http2;
|
||||
|
|
@ -39,8 +40,14 @@ server {
|
|||
proxy_set_header Connection $connection_upgrade;
|
||||
|
||||
# Cache settings
|
||||
proxy_cache cache1;
|
||||
proxy_cache_lock on;
|
||||
proxy_cache_use_stale updating;
|
||||
proxy_force_ranges on;
|
||||
add_header X-Cache $upstream_cache_status;
|
||||
}
|
||||
|
||||
include %home%/%user%/conf/web/%domain%/nginx.ssl.conf_*;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue