1
0
mirror of https://github.com/taigrr/nats.docs synced 2025-01-18 04:03:23 -08:00
nats.docs/docs/nats_tools/nas/dir_store.md
Stephen Asbury c1f113449a Added make deploy
Added /docs so we can host
2019-05-20 14:04:23 -07:00

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.