Skip to content

this project is a solution to solve nginx proxy store without file manager.

Notifications You must be signed in to change notification settings

cxwshawn/ngx_proxy_store_file_mgr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ngx_proxy_store_file_mgr

Description: this project is a solution to solve nginx proxy store without file manager. Since nginx 's proxy_store directive is just responsible for saving files to disk and does not consider time to delete files. ngx_proxy_store_file_mgr is a process used to delete files on the disk using LRU .

Notes:

  1. file access time saved in redis database, using sorted set;
  2. ngx_proxy_store_file_mgr uses json format config files, as follows : { "MaxFileLimit" : 100000, "CheckInterval" : 20, //check every 20s "ExpireDays" : 7, "ErrorLog": true, "AccessLog": false, "SortedSetName": "defset", "HashName": "defhash", "RedisAddr" : "127.0.0.1:6379", "RoutineCount" : 32 }

but currently the lru condition is just disk percentage(low than 20%), and later will implement the specified config parameter. 3. provides restful api to shutdown server: curl http://ip:10000/stop

About

this project is a solution to solve nginx proxy store without file manager.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published