Merge pull request #215 from Delivator/nginx-cache-fix
Added skynet cache to nginx config, #214 fix
This commit is contained in:
commit
236878a6e2
|
@ -4,6 +4,9 @@ limit_conn_zone $binary_remote_addr zone=downloads_by_ip:10m;
|
||||||
limit_req_status 429;
|
limit_req_status 429;
|
||||||
limit_conn_status 429;
|
limit_conn_status 429;
|
||||||
|
|
||||||
|
# max_size sets the upper limit of the size of the cache
|
||||||
|
proxy_cache_path /tmp/nginx levels=1:2 keys_zone=skynet:10m inactive=1d max_size=10g use_temp_path=off;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
listen [::]:80 default_server;
|
listen [::]:80 default_server;
|
||||||
|
|
Reference in New Issue