mirror of
https://github.com/certd/certd.git
synced 2026-04-23 19:57:27 +08:00
chore: pre publish
This commit is contained in:
@@ -4,7 +4,9 @@ import { FlywayHistory } from 'midway-flyway-js/dist/entity';
|
||||
import { MidwayConfig } from '@midwayjs/core';
|
||||
import { UserEntity } from '../modules/authority/entity/user';
|
||||
import { PipelineEntity } from '../modules/pipeline/entity/pipeline';
|
||||
|
||||
import * as dotenv from 'dotenv';
|
||||
// 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,
|
||||
@@ -16,6 +18,9 @@ export default {
|
||||
default: {
|
||||
prefix: '/',
|
||||
dir: 'public',
|
||||
alias: {
|
||||
'/': '/index.html',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -15,10 +15,7 @@ import { PreviewMiddleware } from './middleware/preview';
|
||||
import { AuthorityMiddleware } from './middleware/authority';
|
||||
import * as staticFile from '@midwayjs/static-file';
|
||||
import * as cron from './plugins/cron';
|
||||
import * as dotenv from 'dotenv';
|
||||
|
||||
// load .env file in process.cwd
|
||||
dotenv.config();
|
||||
@Configuration({
|
||||
imports: [koa, orm, cache, flyway, validateComp, cron, staticFile],
|
||||
importConfigs: [
|
||||
|
||||
Reference in New Issue
Block a user