Merge pull request #215 from Delivator/nginx-cache-fix

Added skynet cache to nginx config, #214 fix
This commit is contained in:
Karol Wypchło 2020-05-24 17:42:46 +02:00 committed by GitHub
commit 236878a6e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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;