修改本地监听 ip

This commit is contained in:
whyour
2023-08-29 21:50:23 +08:00
parent e2bd15683e
commit 4618a19c04
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ export default ({ app }: { app: Application }) => {
app.use(
'/api/public',
createProxyMiddleware({
target: `http://localhost:${config.publicPort}/api`,
target: `http://0.0.0.0:${config.publicPort}/api`,
changeOrigin: true,
pathRewrite: { '/api/public': '' },
logProvider: () => Logger