-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Auth refactor JL * authentication fixes * remove jwt interface * fix tests and clean code * fix review comments * Refactored services and removed unnecessary nesting (#747) * database and payment fixes (#743) Co-authored-by: Eugene Voronov <[email protected]> * use of access and refresh tokens for auth * fix tests * make sure token contains bearer * rename jwt prefix --------- Co-authored-by: Francisco López <[email protected]> Co-authored-by: eugenvoronov <[email protected]> Co-authored-by: Eugene Voronov <[email protected]>
- Loading branch information
1 parent
025a29d
commit a9e39ba
Showing
65 changed files
with
1,093 additions
and
1,670 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,50 @@ | ||
version: '3.7' | ||
version: '3.8' | ||
|
||
services: | ||
postgres: | ||
image: postgres:latest | ||
restart: always | ||
environment: | ||
- POSTGRES_HOST=0.0.0.0 | ||
- POSTGRES_USER=operator | ||
- POSTGRES_PASSWORD=qwerty | ||
- POSTGRES_DB=job-launcher | ||
- POSTGRES_PORT=5435 | ||
- POSTGRES_SYNC=false | ||
- POSTGRES_HOST=${POSTGRES_HOST} | ||
- POSTGRES_USER=${POSTGRES_USER} | ||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} | ||
- POSTGRES_DB=${POSTGRES_DB} | ||
- POSTGRES_PORT=${POSTGRES_PORT} | ||
- POSTGRES_SYNC=${POSTGRES_SYNC} | ||
logging: | ||
options: | ||
max-size: 10m | ||
max-file: "3" | ||
ports: | ||
- '5435:5432' | ||
volumes: | ||
- ./db:/var/lib/postgresql/data | ||
- '${POSTGRES_PORT}:${POSTGRES_PORT}' | ||
# volumes: | ||
# - ./db:/var/lib/postgresql/data | ||
minio: | ||
container_name: minio | ||
image: minio/minio:RELEASE.2022-05-26T05-48-41Z | ||
ports: | ||
- 9001:9001 | ||
- 9000:9000 | ||
environment: | ||
MINIO_ROOT_USER: ${S3_ACCESS_KEY} | ||
MINIO_ROOT_PASSWORD: ${S3_SECRET_KEY} | ||
entrypoint: 'sh' | ||
command: | ||
-c "mkdir -p /data/manifests && minio server /data --console-address ':9001'" | ||
healthcheck: | ||
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"] | ||
interval: 5s | ||
timeout: 5s | ||
retries: 3 | ||
minio-mc: | ||
container_name: minio-mc | ||
image: minio/mc | ||
depends_on: | ||
minio: | ||
condition: service_healthy | ||
entrypoint: > | ||
/bin/sh -c " | ||
/usr/bin/mc config host add myminio http://minio:9000 ${S3_ACCESS_KEY} ${S3_SECRET_KEY}; | ||
/usr/bin/mc mb myminio/manifests; | ||
/usr/bin/mc anonymous set public myminio/manifests; | ||
" |
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
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
59 changes: 0 additions & 59 deletions
59
packages/apps/job-launcher/server/src/common/constants/network.ts
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
packages/apps/job-launcher/server/src/common/constants/payment.ts
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import { ICoingeckoTokenId } from '../interfaces'; | ||
|
||
export const CoingeckoTokenId: ICoingeckoTokenId = { | ||
hmt: 'human-protocol', | ||
}; |
1 change: 0 additions & 1 deletion
1
packages/apps/job-launcher/server/src/common/decorators/index.ts
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 |
---|---|---|
@@ -1,2 +1 @@ | ||
export * from './role'; | ||
export * from './public'; |
6 changes: 0 additions & 6 deletions
6
packages/apps/job-launcher/server/src/common/decorators/role.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,2 +1 @@ | ||
export * from './jwt.http'; | ||
export * from './roles'; | ||
export * from './jwt.auth'; |
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
Oops, something went wrong.