LicenseServer/README.md

40 lines
857 B
Markdown
Raw Normal View History

2023-05-30 17:39:36 -07:00
# LicenseServer
2023-05-31 22:17:13 -07:00
A simple open-source licensing server for your products.
## API Reference
### Check License
```http
2023-05-31 22:21:15 -07:00
POST /check
2023-05-31 22:17:13 -07:00
```
#### Body
| Key | Type | Description |
|:----------|:---------|:-----------------------------------------------|
| `key` | `string` | **Required**. Your license key |
| `product` | `string` | **Required**. The product the license is for |
| `hwid` | `string` | **Required**. The hardware id of the requester |
## Deployment
### Docker
```bash
docker run -d -p 7500:7500 -v "$(pwd)/data:/usr/local/app" git.rainnny.club/rainnny/licenseserver:latest
```
### Docker Compose
```yml
version: '3'
services:
app:
image: git.rainnny.club/rainnny/licenseserver:latest
volumes:
- ./data:/usr/local/app
ports:
- "7500:7500"
```