https://github.com/freecode911/cdn-rapidapi-server
https://github.com/freecode911/cdn-rapidapi-server
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/freecode911/cdn-rapidapi-server
- Owner: FreeCode911
- Created: 2025-06-12T12:00:48.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-06-12T12:14:56.000Z (11 months ago)
- Last Synced: 2025-06-26T12:53:28.519Z (10 months ago)
- Language: Python
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Temporary File Storage API
A Dockerized FastAPI application for temporary file storage with:
- 5GB max file size
- 24-hour automatic expiration
- Distributed across multiple storage volumes
## Features
- File upload with automatic expiration
- File download and metadata retrieval
- Storage statistics monitoring
- Distributed across /storage, /storage2, /storage3
## Getting Started
### Prerequisites
- Docker
- Docker Compose
### Installation
1. Clone the repository:
```bash
git clone https://github.com/yourusername/temp-file-api.git
cd temp-file-api
```
2. Build and run the containers:
```bash
docker-compose up -d --build
```
3. The API will be available at `http://localhost:8000`
### API Documentation
After starting the service, access the interactive docs at:
`http://localhost:8000/docs`
## Configuration
Environment variables:
- `MAX_FILE_SIZE`: Maximum file size in bytes (default: 5368709120 = 5GB)
- `DEFAULT_EXPIRY`: Default expiration time in seconds (default: 86400 = 24h)
## GitHub Actions Setup
This repository includes GitHub Actions to:
- Build and test the Docker image on push
- Push to Docker Hub on release
## License
MIT