LicenseServer/README.md

70 lines
1.8 KiB
Markdown
Raw Normal View History

2023-12-02 01:15:07 -08:00
[![Discord](https://discord.com/api/guilds/827863713855176755/widget.png)](https://discord.gg/p9gzFE2bc6)
![Wakatime Hours](https://wakatime.rainnny.club/api/badge/Rainnny/interval:any/project:LicenseServer)
[![Download](https://img.shields.io/badge/Download-Releases-darkgreen.svg)](https://git.rainnny.club/Rainnny/LicenseServer/releases)
2023-05-30 17:39:36 -07:00
2023-12-02 01:15:07 -08:00
# LicenseServer
2023-05-31 22:17:13 -07:00
A simple open-source licensing server for your products.
2023-05-31 22:29:21 -07:00
## Discord Preview
2023-06-01 21:42:51 -07:00
![License Global Log](https://cdn.rainnny.club/SagsCD0I.png)
![License Owner Log](https://cdn.rainnny.club/JZdFxTCy.png)
2023-06-08 00:05:10 -07:00
![License Owner Lookup](https://cdn.rainnny.club/EU0g1iLZ.png)
2023-05-31 22:29:21 -07:00
2023-05-31 22:17:13 -07:00
## API Reference
### Check License
```http
2023-05-31 22:21:15 -07:00
POST /check
2023-05-31 22:17:13 -07:00
```
#### Body
2023-12-02 00:44:58 -08:00
| Key | Type | Description |
|:----------|:---------|:----------------------------------------------------------------|
| `key` | `string` | **Required**. Your base64 encrypted license key |
| `product` | `string` | **Required**. The product the license is for |
| `hwid` | `string` | **Required**. The base64 encrypted hardware id of the requester |
2023-05-31 22:17:13 -07:00
2023-05-31 22:23:12 -07:00
#### Response
##### Error
```json
{
"error": "Error message"
}
```
##### Success
```json
{
"description": "Testing",
"ownerSnowflake": 504147739131641857,
"ownerName": "Braydon#2712",
2023-06-01 21:44:10 -07:00
"expires": "2023-06-02T06:00:47.270+00:00"
2023-05-31 22:23:12 -07:00
}
```
2023-05-31 22:17:13 -07:00
## Deployment
### Docker
```bash
docker run -d -p 7500:7500 -v "$(pwd)/data/application.yml:/usr/local/app/application.yml" git.rainnny.club/rainnny/licenseserver:latest
2023-05-31 22:17:13 -07:00
```
### Docker Compose
```yml
version: '3'
services:
app:
image: git.rainnny.club/rainnny/licenseserver:latest
volumes:
- ./data/application.yml:/usr/local/app/application.yml
2023-05-31 22:17:13 -07:00
ports:
- "7500:7500"
```