@stigg/sidecar 2.500.0 → 3.5.0
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.
- package/README.md +5 -4
- package/dist/bin/sidecar-linux +0 -0
- package/dist/bin/sidecar-macos +0 -0
- package/dist/index.js +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ Run the service:
|
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
37
|
docker run --rm --name stigg-sidecar --memory=1gb --cpus="1" \
|
|
38
|
-
--publish=
|
|
38
|
+
--publish=80:80 --publish=8080:8080 \
|
|
39
39
|
-e SERVER_API_KEY="<SERVER_API_KEY>" \
|
|
40
40
|
public.ecr.aws/stigg/sidecar:latest
|
|
41
41
|
```
|
|
@@ -57,13 +57,14 @@ docker run --rm --name stigg-sidecar --memory=1gb --cpus="1" \
|
|
|
57
57
|
| `REDIS_USERNAME` | String | | Redis username |
|
|
58
58
|
| `REDIS_PASSWORD` | String | | Redis password |
|
|
59
59
|
| `REDIS_KEYS_TTL_IN_SECS` | Number | `7 * 24 * 60 * 60` | Time for entitlements to be cached,<br/>in milliseconds |
|
|
60
|
-
| `
|
|
61
|
-
| `
|
|
60
|
+
| `GRPC_PORT` | Number | `80` | Service port (HTTP/2) |
|
|
61
|
+
| `PORT` | Number | `8443` | *Deprecated* TLS service port (HTTP/2 TLS) |
|
|
62
|
+
| `METRICS_PORT` | Number | `8080` | Metrics and health endpoints port (HTTP/1) |
|
|
62
63
|
| `ENTITLEMENTS_FALLBACK` | String | `` | Fallback entitlements in a JSON string format. |
|
|
63
64
|
| `HEALTH_ENDPOINT_URL` | String | `livez` | Health endpoint URL |
|
|
64
65
|
| `READY_ENDPOINT_URL` | String | `readyz` | Ready endpoint URL |
|
|
65
66
|
| `OFFLINE` | Boolean | | Enable offline mode for local development |
|
|
66
|
-
| `ENTITLEMENTS_TIMEOUT` | Number | `10 * 1000` | Entitlements request timeout in milliseconds
|
|
67
|
+
| `ENTITLEMENTS_TIMEOUT` | Number | `10 * 1000` | Entitlements request timeout in milliseconds |
|
|
67
68
|
|
|
68
69
|
\*Required fields
|
|
69
70
|
|
package/dist/bin/sidecar-linux
CHANGED
|
Binary file
|
package/dist/bin/sidecar-macos
CHANGED
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
#! /usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-unused-vars,@typescript-eslint/no-var-requires */
|
|
4
|
+
// eslint-disable @typescript-eslint/ban-ts-comment
|
|
5
|
+
// noinspection ES6ConvertRequireIntoImport
|
|
3
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
7
|
// Run in production mode when packaged
|
|
5
|
-
// @ts-ignore
|
|
6
8
|
if (process.pkg) {
|
|
7
9
|
process.env.NODE_ENV = 'production';
|
|
8
10
|
}
|
|
9
11
|
// Explicit require axios due to issue: https://github.com/axios/axios/issues/5195
|
|
10
|
-
// noinspection JSUnusedLocalSymbols
|
|
11
|
-
// @ts-ignore
|
|
12
12
|
const axios = require('../node_modules/axios/dist/node/axios.cjs');
|
|
13
13
|
const server_1 = require("./server");
|
|
14
14
|
(0, server_1.launch)().catch((err) => {
|
|
15
15
|
console.error(`Failed to launch sidecar. Reason: ${err.message}`, err);
|
|
16
|
-
process.exit(1);
|
|
16
|
+
(0, server_1.shutdown)().then(() => process.exit(1));
|
|
17
17
|
});
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFDQSx5RkFBeUY7QUFDekYsbURBQW1EO0FBQ25ELDJDQUEyQzs7QUFFM0MsdUNBQXVDO0FBQ3ZDLElBQUssT0FBOEMsQ0FBQyxHQUFHLEVBQUUsQ0FBQztJQUN4RCxPQUFPLENBQUMsR0FBRyxDQUFDLFFBQVEsR0FBRyxZQUFZLENBQUM7QUFDdEMsQ0FBQztBQUVELGtGQUFrRjtBQUNsRixNQUFNLEtBQUssR0FBRyxPQUFPLENBQUMsMkNBQTJDLENBQUMsQ0FBQztBQUVuRSxxQ0FBNEM7QUFFNUMsSUFBQSxlQUFNLEdBQUUsQ0FBQyxLQUFLLENBQUMsQ0FBQyxHQUFHLEVBQUUsRUFBRTtJQUNyQixPQUFPLENBQUMsS0FBSyxDQUFDLHFDQUFxQyxHQUFHLENBQUMsT0FBTyxFQUFFLEVBQUUsR0FBRyxDQUFDLENBQUM7SUFDdkUsSUFBQSxpQkFBUSxHQUFFLENBQUMsSUFBSSxDQUFDLEdBQUcsRUFBRSxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztBQUN6QyxDQUFDLENBQUMsQ0FBQyJ9
|