{"id":20439393,"url":"https://github.com/skitsanos/openresty-filebrowser","last_synced_at":"2026-04-16T16:02:37.906Z","repository":{"id":153096242,"uuid":"321444400","full_name":"skitsanos/openresty-filebrowser","owner":"skitsanos","description":"Fileserver API for OpenResty","archived":false,"fork":false,"pushed_at":"2023-12-04T10:22:49.000Z","size":24,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-05T07:34:36.464Z","etag":null,"topics":["file-sharing","file-upload","fileserver","lfs","lua","luajit","nginx","openresty"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skitsanos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-14T18:57:54.000Z","updated_at":"2023-12-04T10:22:53.000Z","dependencies_parsed_at":"2025-01-15T19:22:38.828Z","dependency_job_id":"9a0c1df8-4941-4a99-84da-5ed01976bad3","html_url":"https://github.com/skitsanos/openresty-filebrowser","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/skitsanos/openresty-filebrowser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skitsanos%2Fopenresty-filebrowser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skitsanos%2Fopenresty-filebrowser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skitsanos%2Fopenresty-filebrowser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skitsanos%2Fopenresty-filebrowser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skitsanos","download_url":"https://codeload.github.com/skitsanos/openresty-filebrowser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skitsanos%2Fopenresty-filebrowser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31893265,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T11:36:10.202Z","status":"ssl_error","status_checked_at":"2026-04-16T11:36:09.652Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["file-sharing","file-upload","fileserver","lfs","lua","luajit","nginx","openresty"],"created_at":"2024-11-15T09:17:06.563Z","updated_at":"2026-04-16T16:02:37.869Z","avatar_url":"https://github.com/skitsanos.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openresty-filebrowser\nFileserver API for OpenResty\n\n#### Dependencies \n\n - luafilesystem\n - lua-resty-post\n \n### Configuring openresty-filebrowser\n\nWhile configuring your nginx, you will need to specify the _mediaPath_ value, so the API would know from where to serve your content.\n\n```nginx\nset $mediaPath '/hpfs/files';\n```\n\nThis variable will be used in _media.conf_ file and in API itself.\n\n \n### Browsing directory content\n\n```\nGET /media{path}\n```\nReturns a list of directories and files from your _mediaPath/{path}_ path in JSON format\n\nExample: browsing /demo/ directory:\n\n```\nGET /media/demo\n```\n\nResponse\n\n```json\n{\n  \"result\":[\n    {\n      \"mode\": \"directory\",\n      \"item\": \"demo\",\n      \"timestamp\": 1607885051\n    },\n    {\n      \"mode\": \"file\",\n      \"item\": \".DS_Store\",\n      \"timestamp\": 1603740766,\n      \"size\": 6148\n    }\n  ]\n}\n```\nand \nAPI returns only resources of type _directory_ or _file_. Size information is available only for items of type _file_\n\n### Getting the file\n\n```\nGET /media{path}{file}\n```\n\n### Uploading file\n\n```\nPOST /media{pah}\n```\n\nUploading file into mediaPath/{path}. If _path_ is not found it will be created within _mediaPath_ location.\n\n### Renaming path\n\n```\nPUT /media{path}\n```\n\nPayload: \n\n```json\n{\n  \"target\": \"{new_name}\"\n}\n```\n\nFor example you want to rename directory _demo_ into _prod_, to make it happen, just send the follwoing PUT request:\n\n```\nPUT /media/demo\n```\n \nwith payload\n \n```json\n{\n  \"target\": \"prod\"\n}\n```\n\nIt works exactly the same when you need to rename the file.\n\n### Deleting file or directory\n\n```\nDELETE /media/{path}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskitsanos%2Fopenresty-filebrowser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskitsanos%2Fopenresty-filebrowser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskitsanos%2Fopenresty-filebrowser/lists"}