Merge branch 'auth' into 'main'
Fix auth config name See merge request v3/service/configuration!34
This commit is contained in:
commit
1bd50b7642
|
@ -16,7 +16,7 @@ REDIS_PORT=6379
|
||||||
# DEFAULT CONFIGURATION
|
# DEFAULT CONFIGURATION
|
||||||
|
|
||||||
# AUTH
|
# AUTH
|
||||||
# encryption algorithm : BCRYPT / ARGON2 / ARGON2I / ARGON2D / ARGON2ID
|
# encryption algorithm : BCRYPT / ARGON2I / ARGON2D / ARGON2ID
|
||||||
ENCRYPTION_ALGORITHM=BCRYPT
|
ENCRYPTION_ALGORITHM=BCRYPT
|
||||||
|
|
||||||
# CARPOOL
|
# CARPOOL
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "@mobicoop/configuration",
|
"name": "@mobicoop/configuration",
|
||||||
"version": "2.5.0",
|
"version": "2.5.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@mobicoop/configuration",
|
"name": "@mobicoop/configuration",
|
||||||
"version": "2.5.0",
|
"version": "2.5.1",
|
||||||
"license": "AGPL",
|
"license": "AGPL",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@grpc/grpc-js": "^1.9.9",
|
"@grpc/grpc-js": "^1.9.9",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@mobicoop/configuration",
|
"name": "@mobicoop/configuration",
|
||||||
"version": "2.5.0",
|
"version": "2.5.1",
|
||||||
"description": "Mobicoop V3 Configuration Service",
|
"description": "Mobicoop V3 Configuration Service",
|
||||||
"author": "sbriat",
|
"author": "sbriat",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
|
|
@ -5,6 +5,6 @@ export interface AuthConfig extends Config {
|
||||||
encryptionAlgorithm: string;
|
encryptionAlgorithm: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default registerAs('match', () => ({
|
export default registerAs('auth', () => ({
|
||||||
encryptionAlgorithm: process.env.ENCRYPTION_ALGORITHM ?? 'BCRYPT',
|
encryptionAlgorithm: process.env.ENCRYPTION_ALGORITHM ?? 'BCRYPT',
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in New Issue