2023-12-02 04:15:07 -05: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 20:39:36 -04:00
|
|
|
|
2023-12-02 04:15:07 -05:00
|
|
|
# LicenseServer
|
2023-06-01 01:17:13 -04:00
|
|
|
A simple open-source licensing server for your products.
|
|
|
|
|
2023-06-01 01:29:21 -04:00
|
|
|
## Discord Preview
|
|
|
|
|
2023-06-02 00:42:51 -04:00
|
|
|
![License Global Log](https://cdn.rainnny.club/SagsCD0I.png)
|
|
|
|
![License Owner Log](https://cdn.rainnny.club/JZdFxTCy.png)
|
2023-06-08 03:05:10 -04:00
|
|
|
![License Owner Lookup](https://cdn.rainnny.club/EU0g1iLZ.png)
|
2023-06-01 01:29:21 -04:00
|
|
|
|
2023-06-01 01:17:13 -04:00
|
|
|
## API Reference
|
|
|
|
|
|
|
|
### Check License
|
|
|
|
|
|
|
|
```http
|
2023-06-01 01:21:15 -04:00
|
|
|
POST /check
|
2023-06-01 01:17:13 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Body
|
|
|
|
|
2023-12-02 03:44:58 -05: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-06-01 01:17:13 -04:00
|
|
|
|
2023-06-01 01:23:12 -04:00
|
|
|
#### Response
|
|
|
|
|
|
|
|
##### Error
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"error": "Error message"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
##### Success
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"description": "Testing",
|
|
|
|
"ownerSnowflake": 504147739131641857,
|
|
|
|
"ownerName": "Braydon#2712",
|
2023-06-02 00:44:10 -04:00
|
|
|
"expires": "2023-06-02T06:00:47.270+00:00"
|
2023-06-01 01:23:12 -04:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2023-06-01 01:17:13 -04:00
|
|
|
## Deployment
|
|
|
|
|
|
|
|
### Docker
|
|
|
|
|
|
|
|
```bash
|
2023-06-01 01:32:01 -04:00
|
|
|
docker run -d -p 7500:7500 -v "$(pwd)/data/application.yml:/usr/local/app/application.yml" git.rainnny.club/rainnny/licenseserver:latest
|
2023-06-01 01:17:13 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
### Docker Compose
|
|
|
|
|
|
|
|
```yml
|
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
app:
|
|
|
|
image: git.rainnny.club/rainnny/licenseserver:latest
|
|
|
|
volumes:
|
2023-06-01 01:32:01 -04:00
|
|
|
- ./data/application.yml:/usr/local/app/application.yml
|
2023-06-01 01:17:13 -04:00
|
|
|
ports:
|
|
|
|
- "7500:7500"
|
|
|
|
```
|