File tree Expand file tree Collapse file tree 6 files changed +124
-158
lines changed
Expand file tree Collapse file tree 6 files changed +124
-158
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- FROM node:14 -alpine
1+ FROM node:16 -alpine
22
33LABEL maintainer="i@i-meto.com"
44
Original file line number Diff line number Diff line change 11{
22 "name" : " docker-ipdb" ,
3- "version" : " 1.0 .0" ,
3+ "version" : " 1.1 .0" ,
44 "main" : " server.js" ,
55 "repository" : " git@github.com:metowolf/docker-ipdb.git" ,
66 "author" : " metowolf <i@i-meto.com>" ,
1313 "@ipdb/range" : " ^0.1.1" ,
1414 "dotenv-flow" : " ^3.2.0" ,
1515 "ipdb" : " ^0.3.3" ,
16- "koa" : " ^2.13.0 " ,
17- "koa-helmet" : " ^5.2 .0" ,
16+ "koa" : " ^2.13.1 " ,
17+ "koa-helmet" : " ^6.1 .0" ,
1818 "koa-pino-logger" : " ^3.0.0" ,
19- "koa-router" : " ^9.1 .0" ,
19+ "koa-router" : " ^10.0 .0" ,
2020 "koa2-cors" : " ^2.0.6" ,
21- "pino" : " ^6.3.2 " ,
22- "pino-pretty" : " ^4.0 .0" ,
23- "qqwry.ipdb" : " ^2020.7.5 "
21+ "pino" : " ^6.11.3 " ,
22+ "pino-pretty" : " ^5.1 .0" ,
23+ "qqwry.ipdb" : " ^2021.6.30 "
2424 },
2525 "devDependencies" : {
26- "nodemon" : " ^2.0.4 "
26+ "nodemon" : " ^2.0.9 "
2727 }
2828}
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ require('dotenv-flow').config()
33module . exports = {
44 http : {
55 port : parseInt ( process . env . HTTP_PORT || 3000 , 10 ) ,
6- host : process . env . HTTP_HOST || 'localhost'
6+ host : process . env . HTTP_HOST || 'localhost' ,
7+ prefix : process . env . HTTP_PREFIX || ''
78 }
89}
Original file line number Diff line number Diff line change 11const Router = require ( 'koa-router' )
22const qqwry = require ( './qqwry/routes' )
33const ipip = require ( './ipip/routes' )
4+ const config = require ( '../../config' )
45
56const v1 = new Router ( {
6- prefix : ' /v1' ,
7+ prefix : ` ${ config . http . prefix } /v1` ,
78} )
89
910v1 . use ( qqwry . routes ( ) )
You can’t perform that action at this time.
0 commit comments