0.0.54 • Published 5 months ago

@silenteer/natsu-port-server v0.0.54

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months 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.53

7 months ago

0.0.54

5 months ago

0.0.52

1 year ago

0.0.51

1 year ago

0.0.50

1 year ago

0.0.48

2 years ago

0.0.49

2 years ago

0.0.46

2 years ago

0.0.47

2 years ago

0.0.43

2 years ago

0.0.44

2 years ago

0.0.45

2 years ago

0.0.40

2 years ago

0.0.41

2 years ago

0.0.42

2 years ago

0.0.37

2 years ago

0.0.38

2 years ago

0.0.39

2 years ago

0.0.36

2 years ago

0.0.34

3 years ago

0.0.35

3 years ago

0.0.33

3 years ago

0.0.32

3 years ago

0.0.30

3 years ago

0.0.28

3 years ago

0.0.29

3 years ago

0.0.27

3 years ago

0.0.26

3 years ago

0.0.24

3 years ago

0.0.21

4 years ago

0.0.22

3 years ago

0.0.23

3 years ago

0.0.20

4 years ago

0.0.18

4 years ago

0.0.19

4 years ago

0.0.17

4 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.12

4 years ago

0.0.13

4 years ago

0.0.14

4 years ago

0.0.15

4 years ago

0.0.16

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago