Commit 689bfb4c authored by 魏裕群's avatar 魏裕群

val

parent adc759e6
......@@ -2,7 +2,7 @@ variables:
DOCKER_REGISTRY: 't-docker.51gjj.com'
before_script:
- docker login -u pengtianzi -p 4dc8b3a4d91fa7fa $DOCKER_REGISTRY
- docker login -u {{ dockerRegisterName }} -p {{ dockerRegisterPass}} $DOCKER_REGISTRY
stages:
- pre_deploy
......
# hackernews-async-ts
# {{ name }}
{{ description }}
## QuickStart
......
......@@ -25,7 +25,7 @@ export default (appInfo: EggAppConfig) => {
};
config.router = {
prefix: ''
prefix: '{{ pathPrefix }}'
};
config.middleware = [
......@@ -40,12 +40,12 @@ export default (appInfo: EggAppConfig) => {
};
// override config from framework / plugin
config.keys = appInfo.name + '_1537508791174_5973';
config.keys = '{{ keys }}';
config.sessionExpireIn = 7 * 3600 * 24;
config.jwt = {
secret: appInfo.name + '123456',
secret: '{{ jwtSecret }}',
enable: true,
credentialsRequired: false,
exp: Math.floor(Date.now() / 1000) + config.sessionExpireIn, // 一周
......
import { DefaultConfig } from './config.default';
import { EggAppConfig } from 'egg';
export default (appInfo: EggAppConfig) => {
export default () => {
const config: DefaultConfig = {};
config.keys = appInfo.name + '_1557111601312_6918';
config.keys = process.env.KEYS;
config.jwt = {
secret: appInfo.name + '123456',
secret: process.env.JWT_SECRET,
}
config.sequelize = {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment