mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
[feature] Health check
This commit is contained in:
@ -33,7 +33,16 @@ module.exports = (env, argv) => {
|
||||
},
|
||||
port: 3000,
|
||||
open: true,
|
||||
historyApiFallback: true
|
||||
historyApiFallback: true,
|
||||
proxy: {
|
||||
'/healthcheck-api': {
|
||||
target: process.env.REACT_APP_DOCSERVICE_URL,
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
'^/healthcheck-api': '/healthcheck'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
plugins: [
|
||||
@ -55,7 +64,8 @@ module.exports = (env, argv) => {
|
||||
]
|
||||
}),
|
||||
new webpack.DefinePlugin({
|
||||
'process.env.REACT_APP_BACKEND_URL': JSON.stringify(process.env.REACT_APP_BACKEND_URL)
|
||||
'process.env.REACT_APP_BACKEND_URL': JSON.stringify(process.env.REACT_APP_BACKEND_URL),
|
||||
'process.env.REACT_APP_DOCSERVICE_URL': JSON.stringify(process.env.REACT_APP_DOCSERVICE_URL)
|
||||
})
|
||||
],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user