Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/scripts/nats.conf
Views: 1324
1
jetstream: enabled
2
3
jetstream {
4
store_dir: data/nats/jetstream
5
}
6
7
websocket {
8
listen: "localhost:8443"
9
no_tls: true
10
jwt_cookie: "%2F3fa218e5-7196-4020-8b30-e2127847cc4f%2Fport%2F5002cocalc_nats_jwt_cookie"
11
}
12
13
include ../data/nats/trust.conf
14
15
# configuration of the nats based resolver
16
resolver {
17
type: full
18
# Directory in which the account jwt will be stored
19
dir: 'data/nats/jwt'
20
# In order to support jwt deletion, set to true
21
# If the resolver type is full delete will rename the jwt.
22
# This is to allow manual restoration in case of inadvertent deletion.
23
# To restore a jwt, remove the added suffix .delete and restart or send a reload signal.
24
# To free up storage you must manually delete files with the suffix .delete.
25
allow_delete: false
26
# Interval at which a nats-server with a nats based account resolver will compare
27
# it's state with one random nats based account resolver in the cluster and if needed,
28
# exchange jwt and converge on the same set of jwt.
29
interval: "2m"
30
# Timeout for lookup requests in case an account does not exist locally.
31
timeout: "1.9s"
32
}
33
34
35