@@ -13,6 +13,7 @@ export interface MongoosePlugin {
1313export interface ConfigInstance {
1414 application : {
1515 logLevel : string ;
16+ nameQueue : string ;
1617 bodyParser : {
1718 limit : string ;
1819 } ;
@@ -38,13 +39,12 @@ export interface ConfigInstance {
3839 api : string ;
3940 options : SwaggerCustomOptions ;
4041 } ;
41- nameQueue : string ;
42- secret : string ;
4342}
4443
4544export default ( ) : ConfigInstance => ( {
4645 application : {
47- logLevel : process . env [ 'LOG_LEVEL' ] || 'info' ,
46+ logLevel : process . env [ 'SESAME_LOG_LEVEL' ] || 'info' ,
47+ nameQueue : process . env [ 'SESAME_NAME_QUEUE' ] || 'sesame' ,
4848 bodyParser : {
4949 limit : '500mb' ,
5050 } ,
@@ -63,14 +63,14 @@ export default (): ConfigInstance => ({
6363 } ,
6464 } ,
6565 ioredis : {
66- uri : process . env [ 'REDIS_URI ' ] || 'redis://localhost:6379/0' ,
66+ uri : process . env [ 'SESAME_REDIS_URI ' ] || 'redis://localhost:6379/0' ,
6767 options : {
6868 showFriendlyErrorStack : true ,
6969 maxRetriesPerRequest : null ,
7070 } ,
7171 } ,
7272 mongoose : {
73- uri : process . env [ 'MONGO_URI ' ] || 'mongodb://localhost:27017/backend' ,
73+ uri : process . env [ 'SESAME_MONGO_URI ' ] || 'mongodb://localhost:27017/backend' ,
7474 options : {
7575 directConnection : true ,
7676 } ,
@@ -88,15 +88,13 @@ export default (): ConfigInstance => ({
8888 /**
8989 * @see https://randomkeygen.com/
9090 */
91- secret : process . env [ 'JWT_SECRET ' ] ,
91+ secret : process . env [ 'SESAME_JWT_SECRET ' ] ,
9292 // jwksUri: 'http://127.0.0.1:2000/jwks',
9393 } ,
9494 } ,
95- nameQueue : process . env [ 'NAME_QUEUE' ] || 'backend' ,
96- secret : process . env [ 'SECRET' ] || 'mySecret' ,
9795 swagger : {
98- path : process . env [ 'SWAGGER_PATH' ] || '/swagger' ,
99- api : process . env [ 'SWAGGER_API' ] || '/swagger/json' ,
96+ path : '/swagger' ,
97+ api : '/swagger/json' ,
10098 options : {
10199 swaggerOptions : {
102100 persistAuthorization : true ,
0 commit comments