https://github.com/ruteri/pmserver
Basic user state server for hdpwm
https://github.com/ruteri/pmserver
actions docker nix rust
Last synced: 2 months ago
JSON representation
Basic user state server for hdpwm
- Host: GitHub
- URL: https://github.com/ruteri/pmserver
- Owner: Ruteri
- Created: 2019-11-17T17:38:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-20T19:48:15.000Z (over 6 years ago)
- Last Synced: 2025-01-15T19:45:59.180Z (over 1 year ago)
- Topics: actions, docker, nix, rust
- Language: Rust
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pmserver
Basic user state server for [hdpwm](https://github.com/Ruteri/hdpwm)
### Compilation
* rust binary: `cargo build`,
* nix package: `nix-build -A pmserver`,
* minimal docker (~30MB) runtime container: `nix-build -A pmserver-docker && docker load < result`.
* NixOS-based docker builder `docker build -t pmserver .`.
### Installation
The following assumes a cloned repo: `git clone https://github.com/ruteri/pmserver && cd pmserver`.
* from source:
```
nix-env -f default.nix -iA pmserver
```
* from cachix:
```
nix-env -iA cachix -f https://cachix.org/api/v1/install
cachix use ruteri
nix-env -bif default.nix -A pmserver
```
### Running
`pmserver` binary is configured via the following env variables:
* `SESSION_KEY_SEED` (required) - string used for encrypting sessions (salted sha256 is used as aes256 key),
* `DB_PATH` (optional, defaults to `./data/db`) - leveldb path.