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

val

parent adc759e6
...@@ -2,7 +2,7 @@ variables: ...@@ -2,7 +2,7 @@ variables:
DOCKER_REGISTRY: 't-docker.51gjj.com' DOCKER_REGISTRY: 't-docker.51gjj.com'
before_script: before_script:
- docker login -u pengtianzi -p 4dc8b3a4d91fa7fa $DOCKER_REGISTRY - docker login -u {{ dockerRegisterName }} -p {{ dockerRegisterPass}} $DOCKER_REGISTRY
stages: stages:
- pre_deploy - pre_deploy
......
# hackernews-async-ts # {{ name }}
{{ description }}
## QuickStart ## QuickStart
......
...@@ -25,7 +25,7 @@ export default (appInfo: EggAppConfig) => { ...@@ -25,7 +25,7 @@ export default (appInfo: EggAppConfig) => {
}; };
config.router = { config.router = {
prefix: '' prefix: '{{ pathPrefix }}'
}; };
config.middleware = [ config.middleware = [
...@@ -40,12 +40,12 @@ export default (appInfo: EggAppConfig) => { ...@@ -40,12 +40,12 @@ export default (appInfo: EggAppConfig) => {
}; };
// override config from framework / plugin // override config from framework / plugin
config.keys = appInfo.name + '_1537508791174_5973'; config.keys = '{{ keys }}';
config.sessionExpireIn = 7 * 3600 * 24; config.sessionExpireIn = 7 * 3600 * 24;
config.jwt = { config.jwt = {
secret: appInfo.name + '123456', secret: '{{ jwtSecret }}',
enable: true, enable: true,
credentialsRequired: false, credentialsRequired: false,
exp: Math.floor(Date.now() / 1000) + config.sessionExpireIn, // 一周 exp: Math.floor(Date.now() / 1000) + config.sessionExpireIn, // 一周
......
import { DefaultConfig } from './config.default'; import { DefaultConfig } from './config.default';
import { EggAppConfig } from 'egg';
export default (appInfo: EggAppConfig) => { export default () => {
const config: DefaultConfig = {}; const config: DefaultConfig = {};
config.keys = appInfo.name + '_1557111601312_6918'; config.keys = process.env.KEYS;
config.jwt = { config.jwt = {
secret: appInfo.name + '123456', secret: process.env.JWT_SECRET,
} }
config.sequelize = { 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