Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sterbweise/plutonium-key-generator-api
A containerized Flask-based API for automated generation of Plutonium server keys.
https://github.com/sterbweise/plutonium-key-generator-api
api docker flask key-generator plutonium python restful-api t6
Last synced: 23 days ago
JSON representation
A containerized Flask-based API for automated generation of Plutonium server keys.
- Host: GitHub
- URL: https://github.com/sterbweise/plutonium-key-generator-api
- Owner: Sterbweise
- License: mit
- Created: 2024-08-23T02:24:21.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-29T02:06:06.000Z (4 months ago)
- Last Synced: 2024-08-29T03:24:33.225Z (4 months ago)
- Topics: api, docker, flask, key-generator, plutonium, python, restful-api, t6
- Language: Python
- Homepage: https://github.com/Sterbweise/plutonium-key-generator-api
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Plutonium Key Generator API
[![Docker](https://img.shields.io/docker/v/yourusername/plutonium-key-generator-api?label=Docker&logo=docker)](https://hub.docker.com/r/Sterbweise/plutonium-key-generator-api)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Python](https://img.shields.io/badge/Python-3.9%2B-blue?logo=python)](https://www.python.org/)
[![Flask](https://img.shields.io/badge/Flask-2.3.2-000000?logo=flask)](https://flask.palletsprojects.com/)
![GitHub repo size](https://img.shields.io/github/repo-size/Sterbweise/plutonium-key-generator-api)
![GitHub stars](https://img.shields.io/github/stars/Sterbweise/plutonium-key-generator-api)
![GitHub forks](https://img.shields.io/github/forks/Sterbweise/plutonium-key-generator-api)
![GitHub issues](https://img.shields.io/github/issues/Sterbweise/plutonium-key-generator-api)
![GitHub last commit](https://img.shields.io/github/last-commit/Sterbweise/plutonium-key-generator-api)API for generating server keys for Plutonium. This API automates the process of creating and retrieving server keys required to host Plutonium game servers, streamlining server setup and management for game administrators. It interfaces directly with the Plutonium platform, handling authentication and key lifecycle management.
## Overview
This API is designed to work in tandem with the `plutonium-key-generator` client project developed in Rust. The combined system is used to bypass game ownership verification for Call of Duty titles on the Plutonium platform, enabling server hosting without traditional game ownership requirements.
Key features of the integrated system:
- Automated key generation for Plutonium servers
- Seamless integration between the API and Rust client
- Bypasses standard game ownership checks for Call of Duty titles
- Facilitates easier setup and management of Plutonium game servers**Note:** This project is intended for educational and development purposes only. Users should comply with all applicable laws and terms of service for the games and platforms involved.
## Table of Contents
- [Plutonium Key Generator API](#plutonium-key-generator-api)
- [Overview](#overview)
- [Table of Contents](#table-of-contents)
- [Features](#features)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Docker Installation](#docker-installation)
- [Using Docker](#using-docker)
- [Using Docker Compose](#using-docker-compose)
- [Local Development](#local-development)
- [Configuration](#configuration)
- [Security](#security)
- [License](#license)
- [Support](#support)## Features
- Generate unique keys
- Manage key lifecycle (activation, deactivation, expiration)
- Easy integration with existing game systems via RESTful API## Prerequisites
- Docker 20.10.x or higher
- Docker Compose 1.29.x or higher (optional, for easy deployment)## Installation
### Docker Installation
This project supports both Docker and Docker Compose for easy deployment and management.
#### Using Docker
1. Clone the repository:
```bash
git clone https://github.com/sterbweise/plutonium-key-generator-api.git
```2. Navigate to the project directory:
```bash
cd plutonium-key-generator-api
```3. Build the Docker image:
```bash
docker build -t plutonium-key-generator-api .
```4. Run the container:
```bash
docker run -d \
--name plutonium-key-generator \
-p 5000:5000 \
-e BASE_URL=https://platform.plutonium.pw/serverkeys/ \
-e COOKIE=your_cookie_value \
-v $(pwd)/data:/data \
plutonium-key-generator-api
```Replace `your_cookie_value` with your actual Plutonium platform cookie.
#### Using Docker Compose
1. Clone the repository (if you haven't already):
```bash
git clone https://github.com/sterbweise/plutonium-key-generator-api.git
cd plutonium-key-generator-api
```2. Create a `.env` file in the project root and add your Plutonium platform cookie:
```
PLUTONIUM_COOKIE=your_cookie_value
```3. Ensure your `docker-compose.yml` file is correctly configured:
```yaml
version: '3.8'
services:
plutonium-key-generator:
build: .
environment:
- BASE_URL=https://platform.plutonium.pw/serverkeys/
- COOKIE=${PLUTONIUM_COOKIE}
volumes:
- ./data:/data
ports:
- "5000:5000"
```4. Run the service using Docker Compose:
```bash
docker-compose up -d
```This command will build the image if it doesn't exist and start the container.
5. To stop the service:
```bash
docker-compose down
```The API will be accessible at `https://localhost:5000/plutonium-key-generator`.
Note: The data directory is mounted as a volume to persist generated keys between container restarts.
For security reasons, never share your cookie value or include it in version control systems. Always use environment variables or secure secret management for sensitive information in production environments.
To view logs:
### Local Development
1. Install dependencies:
```bash
npm install
```2. Set up environment variables:
```bash
cp .env.example .env
# Edit .env file with your configuration
```3. Start the development server:
```bash
npm run dev
```## Configuration
The following environment variables can be configured:
| Variable | Description | Default |
|----------|-------------|---------|
| PORT | Port on which the API listens | 3000 |
| DATABASE_URL | Connection URL for the database | - |
| SECRET_KEY | Secret key for encrypting sensitive data | - |
| API_RATE_LIMIT | Rate limit for API requests (requests per minute) | 100 |
| KEY_EXPIRATION | Default key expiration time | 48h |## Security
- All communications must be done over HTTPS in production
- API token authentication is required for all endpoints
- Regular security audits are conducted## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## Support
For support, please contact:
- Email: [[email protected]](mailto:[email protected])
- Telegram: [@SG991](https://t.me/SG991)You can also open an issue on this repository for bug reports or feature requests.
---
Developed with ❤️ by [Sterbweise](https://github.com/Sterbweise)