0.0.52 • Published 16 days ago

@silenteer/natsu-port-server v0.0.52

Weekly downloads
-
License
MIT
Repository
-
Last release
16 days ago

There're ways to start natsu-port-server

Start via cli

This's simplest way to start the server, just run command with arguments for configuration

natsu-port-server --nats-uri localhost:2222 --nats-auth-subjects=abc,xyz --nats-non-auth-subjects=nmc,xpoi --server-port=4848 --server-path=/addc

Or write configuration in a js file then run command

natsu-port-server --config=./config.js
// config.js

module.exports = {
  NATS_AUTH_SUBJECTS=api.auth.adapt,api.auth.validate
};

Import & start

You may create a file .env to contains configuration for the server

NATS_AUTH_SUBJECTS=api.auth.adapt,api.auth.validate

Use dotenv(or another) to load .env into process.env then import the server and start

require('dotenv').config();

import NatsPortServer from '@silenteer/natsu-port-server';

NatsPortServer.start();

Help

If you want to get guide, run this command

natsu-port-server --help
0.0.52

16 days ago

0.0.51

1 month ago

0.0.50

1 month ago

0.0.48

5 months ago

0.0.49

5 months ago

0.0.46

5 months ago

0.0.47

5 months ago

0.0.43

10 months ago

0.0.44

10 months ago

0.0.45

5 months ago

0.0.40

1 year ago

0.0.41

1 year ago

0.0.42

1 year ago

0.0.37

1 year ago

0.0.38

1 year ago

0.0.39

1 year ago

0.0.36

1 year ago

0.0.34

2 years ago

0.0.35

2 years ago

0.0.33

2 years ago

0.0.32

2 years ago

0.0.30

2 years ago

0.0.28

2 years ago

0.0.29

2 years ago

0.0.27

2 years ago

0.0.26

2 years ago

0.0.24

2 years ago

0.0.21

2 years ago

0.0.22

2 years ago

0.0.23

2 years ago

0.0.20

2 years ago

0.0.18

2 years ago

0.0.19

2 years ago

0.0.17

2 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.0.13

3 years ago

0.0.14

3 years ago

0.0.15

3 years ago

0.0.16

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago