chore: jwt key

This commit is contained in:
xiaojunnuo
2023-05-26 16:18:24 +08:00
parent 2297121eff
commit f516b0931f
5 changed files with 15 additions and 14 deletions
@@ -5,11 +5,12 @@ import { MidwayConfig } from '@midwayjs/core';
import { UserEntity } from '../modules/authority/entity/user';
import { PipelineEntity } from '../modules/pipeline/entity/pipeline';
import * as dotenv from 'dotenv';
//import { logger } from '../utils/logger';
// load .env file in process.cwd
dotenv.config();
export default {
// use for cookie sign key, should change to your own and keep security
keys: process.env.CERTD_AUTH_JWT_KEYS,
keys: process.env.CERTD_AUTH_JWT_KEY,
koa: {
port: 7001,
},