fix domain connections
This commit is contained in:
@@ -5,6 +5,20 @@ import react from '@vitejs/plugin-react'
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
server: {
|
||||
allowedHosts: ['demo.v1ru5.cl']
|
||||
allowedHosts: ['demo.v1ru5.cl'],
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://backend:3000',
|
||||
changeOrigin: true
|
||||
},
|
||||
'/socket.io': {
|
||||
target: 'http://backend:3000',
|
||||
ws: true
|
||||
},
|
||||
'/video_feed': {
|
||||
target: 'http://alpr-service:5001',
|
||||
changeOrigin: true
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user