mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-14 05:05:54 +08:00
feat: set proxy of backend api (#83)
This commit is contained in:
parent
320cbf545f
commit
a4e038310e
@ -21,11 +21,11 @@ export default defineConfig({
|
|||||||
hack: `true; @import "~@/less/variable.less";`,
|
hack: `true; @import "~@/less/variable.less";`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// proxy: {
|
proxy: {
|
||||||
// '/v1': {
|
'/v1': {
|
||||||
// 'target': 'http://54.80.112.79:9380/',
|
target: 'http://123.60.95.134:9380/',
|
||||||
// 'changeOrigin': true,
|
changeOrigin: true,
|
||||||
// 'pathRewrite': { '^/v1': '/v1' },
|
// pathRewrite: { '^/v1': '/v1' },
|
||||||
// },
|
},
|
||||||
// },
|
},
|
||||||
});
|
});
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
let api_host = `http://123.60.95.134:9380/v1`;
|
let api_host = `/v1`;
|
||||||
|
|
||||||
export { api_host };
|
export { api_host };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user