correct config file in readme

This commit is contained in:
bain 2024-06-01 23:06:41 +02:00
parent a2fd79d8ca
commit 963f04a88b
Signed by: bain
GPG key ID: 31F0F25E3BED0B9B
3 changed files with 19 additions and 15 deletions

View file

@ -11,8 +11,8 @@ can correlate user information across services.
1. build binary with `cargo`
2. fill out `config.toml.sample`. The server expects a file called
`config.toml` in its working directory.
2. fill out `config.yml.sample`. The server expects a file called
`config.yml` in its working directory.
3. Generate the keypair for signing JWT tokens with:
```bash

View file

@ -1,13 +0,0 @@
host = "0.0.0.0"
port = 8000
issuer_uri = "http://localhost:8000/"
issuer_name = "My Issuer"
salt = "SOMETHING SOMETHING"
rsa_key_file = "rsa-key.pk8"
[clients]
[clients.a1]
name = "a1.example.com"
client_secret = "SECRET"
redirect_uris = ["https://a1.example.com/cb"]

17
config.yml.sample Normal file
View file

@ -0,0 +1,17 @@
host: "0.0.0.0"
port: 8000
issuer_uri: "https://anon.my-org.invalid"
issuer_name: "My Org"
salt: "longhexstringdeadbeefsomething"
rsa_key_file: "rsa-key.pk8"
clients:
service1:
name: "Service 1"
client_secret: "abcd"
redirect_uris: ["https://service1/redirect"]
service2:
name: "Service 2"
client_secret: "2222"
redirect_uris: ["http://service2/redirect"]