Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions DOCKER-VARIABLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

* `BASE_URL`: Base URL of the servce. Example: `https://tom.company.com`
* `CRON_SERVICE`: Boolean (1 or 0): enable cron tasks or not
* `CROWDSEC_URI`: optional URI of local CrowdSec server
* `CROWDSEC_KEY`: CrowdSec API key _(required if `CROWDSEC_URI` is set)
* `DATABASE_ENGINE`: `sqlite` or `pg`
* `DATABASE_HOST`:
* case `pg`: hostname
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ FROM node:18

env BASE_URL= \
CRON_SERVICE= \
CROWDSEC_URI= \
CROWDSEC_KEY= \
DATABASE_ENGINE= \
DATABASE_HOST= \
DATABASE_NAME= \
Expand Down
199 changes: 193 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@
"test": "lerna run test"
},
"devDependencies": {
"@crowdsec/express-bouncer": "^0.1.0",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-json": "^6.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.5",
"@small-tech/syswide-cas": "^6.0.2",
"@types/events": "^3.0.0",
"@types/express": "^4.17.17",
"@types/jest": "^29.4.0",
Expand Down Expand Up @@ -76,7 +78,6 @@
"rimraf": "^4.3.1",
"rollup": "^3.18.0",
"rollup-plugin-cleaner": "^1.0.0",
"@small-tech/syswide-cas": "^6.0.2",
"supertest": "^6.3.3",
"swagger-jsdoc": "^6.2.8",
"swagger-ui-dist": "^4.18.3",
Expand Down
2 changes: 2 additions & 0 deletions packages/federation-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM node:18

ENV BASE_URL= \
CRON_SERVICE= \
CROWDSEC_URI= \
DATABASE_ENGINE= \
DATABASE_HOST= \
DATABASE_NAME= \
Expand Down
3 changes: 3 additions & 0 deletions packages/federation-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,8 @@
"express-validator": "^7.0.1",
"ip-address": "^9.0.5",
"lodash": "^4.17.21"
},
"optionalDependencies": {
"@crowdsec/express-bouncer": "^0.1.0"
}
}
Loading