https://github.com/cmss13-devs/cm-api-rs
https://github.com/cmss13-devs/cm-api-rs
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cmss13-devs/cm-api-rs
- Owner: cmss13-devs
- License: mit
- Created: 2024-10-21T19:40:15.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-12-29T10:19:25.000Z (6 months ago)
- Last Synced: 2025-12-31T07:21:03.889Z (6 months ago)
- Language: Rust
- Size: 516 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cm-api-rs
This is the backend to [cmdb](https://github.com/cmss13-devs/cmdb), to provide Admins with access to database-stored information from outside the game.
## Configuration
### Api.toml
```toml
[host]
base_url = "/foobar" # if your api is served on a different route
[topic]
host = "play.cm-ss13.com:1400" # which game server should be pinged for status updates
auth = "your-auth-token-here" # the comms key to contact the game server
[logging]
webhook = "some discord webhook" # for actions impacting the database, a discord webhook
```
### Rocket.toml
```toml
[default]
address = "0.0.0.0" # the address the web server should bind to, ie 0.0.0.0 in a container
port = 8080
[default.databases.cmdb]
url = "mysql://root:password@127.0.0.1:3306/cmdb" # pg-esque formatting string
```