Files
nats-server/test/configs/authorization.conf
Ivan Kozlovic bdf5cf63b3 Shutdown on Ctrl+C
Changed code on Windows to not use svc code if running in interactive
mode. The original code was running svc.debug.Run() which uses service
code (Execute()) but from the command line. We don't need that.

Also reduced salt on bcrypt password for a config file that started
to cause failures due to test taking too long to finish.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2019-11-14 20:05:32 -07:00

23 lines
746 B
Plaintext

listen: 127.0.0.1:2442
authorization {
# Authorizations
include "auths.conf"
# Just foo for testing
PASS: $2a$04$P/.bd.7unw9Ew7yWJqXsl.f4oNRLQGvadEL2YnqQXbbb.IVQajRdK
# Users listed with permissions.
users = [
{user: alice, password: $PASS, permissions: $ADMIN}
{user: bob, password: $PASS, permissions: $REQUESTOR}
{user: bench, password: $PASS, permissions: $BENCH}
{user: joe, password: $PASS}
{user: ns, password: $PASS, permissions: $NEW_STYLE}
{user: ns-pub, password: $PASS, permissions: $NS_PUB}
{user: bench-deny, password: $PASS, permissions: $BENCH_DENY}
{user: svca, password: $PASS, permissions: $MY_SERVICE}
{user: svcb, password: $PASS, permissions: $MY_STREAM_SERVICE}
]
}