mirror of
https://git.nolog.cz/NoLog.cz/anon.git
synced 2025-01-31 05:03:35 +01:00
correct config file in readme
This commit is contained in:
parent
a2fd79d8ca
commit
963f04a88b
3 changed files with 19 additions and 15 deletions
|
@ -11,8 +11,8 @@ can correlate user information across services.
|
||||||
|
|
||||||
1. build binary with `cargo`
|
1. build binary with `cargo`
|
||||||
|
|
||||||
2. fill out `config.toml.sample`. The server expects a file called
|
2. fill out `config.yml.sample`. The server expects a file called
|
||||||
`config.toml` in its working directory.
|
`config.yml` in its working directory.
|
||||||
|
|
||||||
3. Generate the keypair for signing JWT tokens with:
|
3. Generate the keypair for signing JWT tokens with:
|
||||||
```bash
|
```bash
|
||||||
|
|
|
@ -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
17
config.yml.sample
Normal 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"]
|
Loading…
Reference in a new issue