Skip to content

Commit a393b9a

Browse files
committed
feat(server): support configuration proxy
1 parent 5ca2190 commit a393b9a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

app.js

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const requestLogger = isProd
3939
yield next
4040
}
4141

42+
app.proxy = config.get('proxy')
4243
app
4344
.use(favicon(path.join(__dirname, '/public/images/icon.png')))
4445
.use(serve('/dist', './dist'))

config/default.json

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"collection": "tokens",
2323
"secret": "shared-secret"
2424
},
25+
"proxy": false,
2526
"upload": {
2627
"types": [".jpg", ".jpeg", ".png", ".gif", ".json", ".yml"],
2728
"size": 5242880,

0 commit comments

Comments
 (0)