node-opcua-local-discovery-server 2.64.0 → 2.64.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
File without changes
package/package.json CHANGED
@@ -1,16 +1,21 @@
1
1
  {
2
2
  "name": "node-opcua-local-discovery-server",
3
- "version": "2.64.0",
3
+ "version": "2.64.1",
4
4
  "description": "pure nodejs OPCUA SDK - local-discovery-server",
5
5
  "bin": {
6
6
  "lds": "./bin/local-discovery-server.js",
7
7
  "local-discovery-server": "./bin/local-discovery-server.js",
8
8
  "node-opcua-local-discovery-server": "./bin/local-discovery-server.js"
9
9
  },
10
+ "scripts": {
11
+ "lint": "eslint source/**/*.ts",
12
+ "test": "echo no test",
13
+ "build-docker": "docker build . -t lds"
14
+ },
10
15
  "dependencies": {
11
16
  "bonjour": "^3.5.0",
12
17
  "env-paths": "2.2.1",
13
- "node-opcua": "2.64.0",
18
+ "node-opcua": "2.64.1",
14
19
  "vorpal": "^1.12.0",
15
20
  "vorpal-repl": "^1.1.8",
16
21
  "yargs": "15.4.1"
@@ -30,11 +35,5 @@
30
35
  "internet of things"
31
36
  ],
32
37
  "homepage": "http://node-opcua.github.io/",
33
- "gitHead": "07dcdd8e8c7f2b55544c6e23023093e35674829c",
34
- "scripts": {
35
- "lint": "eslint source/**/*.ts",
36
- "test": "echo no test",
37
- "build-docker": "docker build . -t lds"
38
- },
39
- "readme": "# node-opcua-local-discovery-server\n\nA local discovery server made with node-opcua that you can easily deploy using npm or docker\n\n## installing the LDS using npm\n\n```\n$ npm install -g node-opcua-local-discovery-server\n$ lds --version\n```\n\n## running from NPX\n\n```\n$npx node-opcua-local-discovery-server --help\n```\n\n| Command | type | alias | default | comment |\n| ------------------- | ------- | ----- | ------- | --------------------------------------------------------------------------------- |\n| --help | | | | display help message |\n| --version | | | | display the node-opcua version used by the lds |\n| --alternateHostname | | | | alternate compute name used when certificate is created (see note) |\n| --force | boolean | -f | false | force the creation of the certificate (overwrite existing certificate) (see note) |\n| --port | number | -p | 4840 | the LDS tcp listening port |\n| --tolerant | boolean | -t | true | if set, the LDS will automatically accept as valid any new server certificate |\n\nnotes!\n\n- LDS certificate is only created the first time he LDS program is run or if the certificate file cannot be found or if the `--force` argument is passed to the command line.\n\n- `alternateHostname` must be set appropriately when certificate is created.\n\n- it is recommended to use `--tolerant false` in production environment for extra security\n\n- if `--tolerant false` is set to false, your server may fail to register itself to the LDS,as LDS will reject the connection because the certificate is not known. You will have to make sure that your server certificate file existing the trusted folder ( and is not present in the rejected folder of the lds pki).\n- the LDS display in the console the location of the `trusted` certificate folders,\n- you can manually move rejected certificate file from the rejected folder to the trusted/cert folder to trust them.\n- if `--tolerant true` or not specified, then the LDS accept secure connection from any server, unless server certificate appears in the `rejected` folder already.\n\n```\n# docker run sterfive/lds:latest --help\nOptions:\n --version Show version number [boolean]\n --alternateHostname\n --help Show help [boolean]\n -n, --applicationName the application name [string]\n -p, --port port to listen to (default: 4840) [number]\n -f, --force force recreation of LDS self-signed certification (taking into account alternateHostname) [boolean]\n -t, --tolerant automatically accept unknown registering server certificate [boolean]\n```\n\n## running LDS in a docker container\n\n### in the background\n\n#### under linux\n\n```\n$ docker run -d -p 4840:4840 -v /temp/lds-config:/root/.config -e HOSTNAME=`hostname --fqdn` sterfive/lds:latest\n```\n\n#### on windows\n\n```\n$ docker run -d -p 4840:4840 -v C:\\temp\\lds-config:/root/.config -e HOSTNAME=%COMPUTERNAME% sterfive/lds:latest\n```\n\n### interactively\n\nif you want to run the lds interactively use `-it` instead of `-d` in the above commands.\n\n#### passing argument\n\nYou can pass some command arguments to the LDS when you run it with docker. Simply add them after `lds`\n\n#### checking the discovery server certificate\n\n- By using the `-v` command the generated certificate will be in a permanent drive of your docker host machine.\n- Next time you run the LDS the certificate will not be recreated if it exists already unless you use the `-f` command.\n- you can check that the certificate with openssl using this command:\n\n```\nopenssl x509 -in c:\\sterfive_config\\node-opcua-local-discovery-server-nodejs\\pki\\local_discovery_server_certificate.pem -text\n```\n"
40
- }
38
+ "gitHead": "b65b8738603cd475d7d99a2b20b0ae9d32b4110c"
39
+ }