-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-template.toml
27 lines (24 loc) · 1.03 KB
/
config-template.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Server listening address.
#
# Use `127.0.0.1:8080` for local cache and testing.
# To make it accessible over internet set the address to: `0.0.0.0:8080`.
listen = "127.0.0.1:8080"
# Secret JWT keypair.
#
# Generate using `nixcache-auth new`.
#
# Set this to the base64 encoding of a randomly generated secret.
token-hs256-secret-base64 = "Qcy6MzWJJgREAjuSY06tk2KQTv9lsy4HwQAkSKGa/tE="
# Signing keypair.
#
# Generate using: `nix key generate-secret --key-name test.nixcache-0`.
#
# The mandatory argument --key-name specifies a key name (such as test.nixcache-0).
# It is used to look up keys on the client when it verifies signatures.
# It can be anything, but it’s suggested to use the host name of your cache (e.g. cache.example.org)
# with a suffix denoting the number of the key (to be incremented every time you need to revoke a key).
signing_key = "test.nixcache-0:pcSJR7QTVSAyx1jcMbGvHYfljUboVn7mw3qWheyx9ySXLWZAZMJYGS8JPAfD8SinuaHtawM4HvbpG+A9z+0laA=="
# Storage backend configuration.
[storage]
type = "local"
path = "/tmp/_nixcache"