mirror of
https://github.com/taigrr/nats.docs
synced 2025-01-18 04:03:23 -08:00
667 B
667 B
Directory Store
NATS Account Server Configuration
OperatorJWTPath: "/users/synadia/.nsc/nats/Test/Test.jwt",
http {
port: 9090
},
store {
dir: "/tmp/as_store",
readonly: false,
shard: true
}
To Add/Update a JWT
> curl -i -X POST localhost:9090/jwt/v1/accounts/AC7PO3MREV26U3LFZFP5BN3HAI32X3PKLBRVMPAETLEHWPQEUG7EJY4H --data-binary @/Users/synadia/.nsc/nats/Test/accounts/TestAccount/TestAccount.jwt -H "Content-Type: text/text"
Note that the @
before the file name is required for curl to read the specified file, and use it as the payload. Otherwise it will simply post the path specified, which will result in an update error.