Welcome to the Flask File Server! This project provides a simple, internal-use file server that integrates Azure AD authentication and offers per-user bucket-based access control. It's designed to be lightweight and easy to set up, making it ideal for internal tools and file storage needs.
- Features
- Getting Started
- Usage
- API Endpoints
- Authentication
- Bucket Management
- Installation
- Contributing
- License
- Contact
- Azure AD Authentication: Secure your files with robust authentication.
- Per-User Access Control: Each user can have their own bucket for file storage.
- Lightweight and Minimal: Quick to set up and easy to use.
- Self-Hosted: Host it on your own server for complete control.
- File Uploads and Downloads: Easily manage your files with simple API calls.
To get started, download the latest release from our Releases page. Follow the instructions to set up the server on your local machine or server.
Once set up, you can use the file server to upload, download, and manage files in a user-friendly way. Each user will have access to their own storage bucket, ensuring that files are organized and secure.
- Endpoint:
/upload
- Method:
POST
- Description: Upload a file to your bucket.
- Endpoint:
/download/<file_id>
- Method:
GET
- Description: Download a file from your bucket.
- Endpoint:
/files
- Method:
GET
- Description: List all files in your bucket.
This server uses Azure AD for authentication. Users must log in using their Azure credentials to access their files. The server will handle the authentication process and provide tokens for secure access.
Each user has their own bucket for file storage. Buckets are isolated, ensuring that users cannot access each other's files. You can manage buckets through the API, creating and deleting them as needed.
-
Clone the repository:
git clone https://github.com/deepiitain/flask-fileserver.git cd flask-fileserver
-
Install the required packages:
pip install -r requirements.txt
-
Set up your Azure AD credentials in the configuration file.
-
Run the server:
python app.py
Visit the server in your web browser to begin using the file server.
We welcome contributions to improve the Flask File Server. If you have suggestions or find issues, please open an issue or submit a pull request. Follow these steps to contribute:
- Fork the repository.
- Create a new branch for your feature or fix.
- Make your changes and commit them.
- Push your changes to your fork.
- Submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
For questions or support, please contact the repository owner. You can reach out via GitHub issues or directly through email.
For more information and updates, please check the Releases section.
Happy file sharing!