Compare commits

..

5 Commits

Author SHA1 Message Date
Rainer Killinger
f432d57004 1.3.0 2022-08-22 17:04:48 +02:00
Rainer Killinger
26a4e6dcf1 refactor: omit logging 200 OK on metrics route 2022-08-22 17:04:02 +02:00
Rainer Killinger
54dc63d848 ci: add cobertura coverage report 2022-08-17 16:54:23 +02:00
openstappsbot
949063eff8 refactor: update all 2022-08-17 16:49:24 +02:00
Rainer Killinger
9832b0395a docs: update changelog 2022-06-08 18:20:49 +02:00
6 changed files with 436 additions and 366 deletions

View File

@@ -21,6 +21,12 @@ unit:
stage: test
script:
- npm test
coverage: '/Statements[^:]*\:[^:]*\s+([\d\.]+)%/'
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: coverage/cobertura-coverage.xml
audit:
allow_failure: true

View File

@@ -1,3 +1,14 @@
# [1.2.0](https://gitlab.com/openstapps/proxy/compare/v1.1.0...v1.2.0) (2022-06-08)
### Features
* added prometheus metrics support ([5522ac5](https://gitlab.com/openstapps/proxy/commit/5522ac55ac00d4b809d942d0a8c58d15b0432fb8))
* reload nginx on proxyconfig change ([1fcf734](https://gitlab.com/openstapps/proxy/commit/1fcf7340d49bde993b3acc7bdc90e6a637a05321))
* support docker swarm deployments ([4bb46d8](https://gitlab.com/openstapps/proxy/commit/4bb46d8a06ff7829b6908bd03c1cf4240767fcc2))
# [1.1.0](https://gitlab.com/openstapps/proxy/compare/v1.0.1...v1.1.0) (2022-03-10)

View File

@@ -1,5 +1,11 @@
map $status $omitOKs {
default 1;
~^[2][0][0] 0;
}
server {
listen 8080;
access_log /dev/stdout combined if=$omitOKs;
location /metrics {
vhost_traffic_status_display;
vhost_traffic_status_display_format prometheus;

741
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,47 +1,47 @@
{
"name": "@openstapps/proxy",
"version": "1.2.0",
"version": "1.3.0",
"description": "NGINX proxy that is dynamically configured by a Node.js script",
"main": "./lib/cli.js",
"dependencies": {
"@openstapps/logger": "0.8.1",
"@types/config": "0.0.41",
"@openstapps/logger": "1.0.0",
"@types/config": "3.3.0",
"@types/dockerode": "3.3.9",
"@types/node": "14.18.16",
"@types/node": "14.18.24",
"@types/sha1": "1.1.3",
"config": "3.3.7",
"dockerode": "3.3.2",
"dockerode": "3.3.3",
"is-cidr": "4.0.2",
"mustache": "4.2.0",
"node-port-scanner": "3.0.1",
"semver": "7.3.7"
},
"devDependencies": {
"@openstapps/configuration": "0.31.0",
"@openstapps/eslint-config": "1.0.0",
"@openstapps/configuration": "0.33.0",
"@openstapps/eslint-config": "1.1.0",
"@testdeck/mocha": "0.2.0",
"@types/chai": "4.3.1",
"@types/chai": "4.3.3",
"@types/chai-spies": "1.0.3",
"@types/mustache": "4.1.3",
"@types/mustache": "4.2.1",
"@types/proxyquire": "1.3.28",
"@typescript-eslint/eslint-plugin": "5.27.1",
"@typescript-eslint/parser": "5.27.1",
"@typescript-eslint/eslint-plugin": "5.33.1",
"@typescript-eslint/parser": "5.33.1",
"chai": "4.3.6",
"chai-spies": "1.0.0",
"conventional-changelog-cli": "2.2.2",
"eslint": "8.17.0",
"eslint": "8.22.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-jsdoc": "39.3.2",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-unicorn": "42.0.0",
"eslint-plugin-jsdoc": "39.3.6",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-unicorn": "43.0.2",
"mocha": "9.2.2",
"nyc": "15.1.0",
"prepend-file-cli": "1.0.6",
"prettier": "2.6.2",
"prettier": "2.7.1",
"proxyquire": "2.1.3",
"rimraf": "3.0.2",
"ts-node": "10.8.1",
"typedoc": "0.22.17",
"ts-node": "10.9.1",
"typedoc": "0.22.18",
"typescript": "4.4.4"
},
"scripts": {
@@ -94,6 +94,7 @@
"lines": 95,
"per-file": true,
"reporter": [
"cobertura",
"html",
"text-summary"
],

View File

@@ -79,4 +79,5 @@ async function updateNginxConfig() {
}
// start the process that checks the docker socket periodically
// eslint-disable-next-line unicorn/prefer-top-level-await
updateNginxConfig();