-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
108 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# [Backend next](https://github.com/SciCatProject/scicat-backend-next) | ||
|
||
The SciCat backend-next or v4 is a rewrite of the original backend, built on top of the NestJS framework. | ||
|
||
## Configuration options | ||
|
||
The backend-next service is mainly configured via environment variables. For an extensive list of available options see [here](https://github.com/SciCatProject/scicat-backend-next/blob/master/README.md). | ||
|
||
### Functional Accounts | ||
|
||
There are a few functional accounts available for handling data: | ||
|
||
| Username | Password | Usage | | ||
| ---------------- | ----------- | ---------------------------- | | ||
| admin | 2jf70TPNZsS | Admin | | ||
| ingestor | aman | Ingest datasets | | ||
| archiveManager | aman | Manage archiving of datasets | | ||
| proposalIngestor | aman | Ingest proposals | | ||
|
||
## Defaul configuration | ||
|
||
In the default configuration folder [config](./config), the backend is set to use the [mongo container](../mongodb/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
MONGODB_URI=mongodb://mongodb:27017/dacat-next | ||
SITE=FACILITY | ||
JWT_SECRET=secret | ||
EXPRESS_SESSION_SECRET=secret | ||
|
||
ADMIN_GROUPS=admin | ||
DELETE_GROUPS=buggy | ||
CREATE_DATASET_GROUPS=ingestor | ||
PROPOSAL_GROUPS=proposalingestor | ||
SAMPLE_GROUPS=ingestor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
[ | ||
{ | ||
"username": "admin", | ||
"password": "2jf0TPNZsS", | ||
"email": "[email protected]", | ||
"role": "admin" | ||
}, | ||
{ | ||
"username": "ingestor", | ||
"password": "aman", | ||
"email": "[email protected]", | ||
"role": "ingestor" | ||
}, | ||
{ | ||
"username": "archiveManager", | ||
"password": "aman", | ||
"email": "[email protected]", | ||
"role": "archivemanager" | ||
}, | ||
{ | ||
"username": "proposalIngestor", | ||
"password": "aman", | ||
"email": "[email protected]", | ||
"role": "proposalingestor" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
services: | ||
backendnext: | ||
image: ghcr.io/scicatproject/backend-next:v4.4.0 | ||
depends_on: | ||
- mongodb | ||
volumes: | ||
- ./config/functionalAccounts.json:/home/node/app/functionalAccounts.json | ||
env_file: | ||
- ./config/.env | ||
labels: | ||
- traefik.http.routers.backendnext.rule=Host(`backendnext.localhost`) | ||
healthcheck: | ||
test: wget --spider -Y off 'http://127.0.0.1:3000/api/v3/health' | ||
start_period: 5s | ||
interval: 30s | ||
timeout: 10s | ||
retries: 5 |