mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 14:56:07 +08:00
修改本地监听 ip
This commit is contained in:
parent
e2bd15683e
commit
4618a19c04
|
@ -26,7 +26,7 @@ export default ({ app }: { app: Application }) => {
|
||||||
app.use(
|
app.use(
|
||||||
'/api/public',
|
'/api/public',
|
||||||
createProxyMiddleware({
|
createProxyMiddleware({
|
||||||
target: `http://localhost:${config.publicPort}/api`,
|
target: `http://0.0.0.0:${config.publicPort}/api`,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: { '/api/public': '' },
|
pathRewrite: { '/api/public': '' },
|
||||||
logProvider: () => Logger
|
logProvider: () => Logger
|
||||||
|
|
|
@ -10,7 +10,7 @@ import config from '../config';
|
||||||
|
|
||||||
class Client {
|
class Client {
|
||||||
private client = new CronClient(
|
private client = new CronClient(
|
||||||
`localhost:${config.cronPort}`,
|
`0.0.0.0:${config.cronPort}`,
|
||||||
credentials.createInsecure(),
|
credentials.createInsecure(),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ const check = async (
|
||||||
switch (call.request.service) {
|
switch (call.request.service) {
|
||||||
case 'cron':
|
case 'cron':
|
||||||
const res = await promiseExec(
|
const res = await promiseExec(
|
||||||
`curl -s http://localhost:${config.port}/api/system`,
|
`curl -s http://0.0.0.0:${config.port}/api/system`,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (res.includes('200')) {
|
if (res.includes('200')) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user