{"id":23629669,"url":"https://github.com/mycloudnest/nest-server","last_synced_at":"2026-02-15T19:04:06.897Z","repository":{"id":267226751,"uuid":"900594718","full_name":"MyCloudNest/Nest-Server","owner":"MyCloudNest","description":"MyCloudNest Server is a backend service built with Go and the Fiber framework, offering efficient file management capabilities. It allows users to upload, download","archived":false,"fork":false,"pushed_at":"2024-12-23T17:26:38.000Z","size":28,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-01T13:01:39.336Z","etag":null,"topics":["cloud","cloudnest","cloudserver","go-sqlite3","gofiber","golang","sqlite"],"latest_commit_sha":null,"homepage":"","language":"Go","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/MyCloudNest.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":"2024-12-09T05:33:02.000Z","updated_at":"2024-12-23T17:26:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"972c6077-d549-46ef-889a-55af3176ac38","html_url":"https://github.com/MyCloudNest/Nest-Server","commit_stats":null,"previous_names":["mycloudnest/nest-server"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/MyCloudNest/Nest-Server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MyCloudNest%2FNest-Server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MyCloudNest%2FNest-Server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MyCloudNest%2FNest-Server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MyCloudNest%2FNest-Server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MyCloudNest","download_url":"https://codeload.github.com/MyCloudNest/Nest-Server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MyCloudNest%2FNest-Server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272940720,"owners_count":25018960,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cloud","cloudnest","cloudserver","go-sqlite3","gofiber","golang","sqlite"],"created_at":"2024-12-28T01:16:45.699Z","updated_at":"2026-02-15T19:04:01.861Z","avatar_url":"https://github.com/MyCloudNest.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Documentation for MyCloudNest Server\n\n## Overview\nMyCloudNest Server is a file management server built using the Fiber framework in Go. It provides features like file upload, download, temporary link generation, and file statistics with robust security and performance configurations.\n\n---\n\n## Features\n1. **File Management**:\n   - Upload, retrieve, and delete files.\n   - Organize files into specific directories based on file type.\n\n2. **Temporary Links**:\n   - Generate temporary download links for files with expiration.\n\n3. **Statistics**:\n   - Track file downloads and last access timestamps.\n\n4. **Rate Limiting**:\n   - Control the number of requests using Redis as a storage backend.\n\n5. **Caching**:\n   - Cache frequently accessed data with support for memory-based storage.\n\n6. **Access Control**:\n   - Restrict access to specific IP addresses using a whitelist middleware.\n\n---\n\n## Configuration\nThe server's configuration is loaded from `~/.cloudnest/config.toml`. Below are the configurable sections:\n\n### Server Configuration\n```toml\n[server]\nhost = \"0.0.0.0\"\nport = 3000\n```\n\n### Rate Limiting\n```toml\n[rate_limit]\nenabled = true\nlimit_body = 104857600 # 100MB\nmax_requests = 100\nexpire_time = 60\n```\n\n### Whitelist\n```toml\n[whitelist]\nenabled = true\nwhitelisted_ips = [\"127.0.0.1\"]\n```\n\n### Performance\n```toml\n[perfomance]\nperfork = false\nconcurrency = 65536\n```\n\n### Cache\n```toml\n[cache]\nenabled = true\n```\n\n---\n\n## API Endpoints\n### **1. File Upload**\n- **Endpoint**: `/api/v1/files`\n- **Method**: `POST`\n- **Description**: Uploads a file to the server and organizes it based on its type.\n\n### **2. Retrieve Files**\n- **Endpoint**: `/api/v1/files`\n- **Method**: `GET`\n- **Description**: Retrieves a list of all files with their metadata.\n\n### **3. Get File**\n- **Endpoint**: `/api/v1/files/:id`\n- **Method**: `GET`\n- **Description**: Downloads or displays a file.\n\n### **4. Delete File**\n- **Endpoint**: `/api/v1/files/:id`\n- **Method**: `DELETE`\n- **Description**: Deletes a file from the server and its metadata.\n\n### **5. Generate Temporary Link**\n- **Endpoint**: `/api/v1/files/:id/temp-link`\n- **Method**: `POST`\n- **Description**: Generates a temporary download link for a file.\n\n### **6. Validate Temporary Link**\n- **Endpoint**: `/api/v1/files/download`\n- **Method**: `GET`\n- **Description**: Validates and serves a file through a temporary link.\n\n### **7. File Statistics**\n- **Endpoint**: `/api/v1/files/:id/stats`\n- **Method**: `GET`\n- **Description**: Retrieves download statistics for a specific file.\n\n---\n\n## Middleware\n### **Whitelist Middleware**\n- Restricts access to the application based on IP addresses.\n\n---\n\n## Database\nThe server uses SQLite for persistent storage. The database is located at `~/.cloudnest/db.sqlite`.\n\n### Tables\n- **`files`**: Stores metadata about files.\n- **`temporary_links`**: Stores information about temporary links.\n- **`file_stats`**: Tracks file download statistics.\n\n---\n\n## How to Run\n1. Ensure the configuration file exists at `~/.cloudnest/config.toml`.\n2. Start the server:\n   ```bash\n   go run main.go\n   ```\n3. Access the API at `http://\u003chost\u003e:\u003cport\u003e`.\n\n---\n\n## Contributors\n- [Rio](https://github.com/pageton)\n\n## License\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmycloudnest%2Fnest-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmycloudnest%2Fnest-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmycloudnest%2Fnest-server/lists"}