forked from Github/frigate
Proxy websockets in devcontainers (#8886)
* proxy websockets * remove whitespace
This commit is contained in:
@@ -19,7 +19,16 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
'/exports': {
|
'/exports': {
|
||||||
target: 'http://localhost:5000'
|
target: 'http://localhost:5000'
|
||||||
}
|
},
|
||||||
|
'/ws': {
|
||||||
|
target: 'ws://localhost:5000',
|
||||||
|
ws: true,
|
||||||
|
},
|
||||||
|
'/live': {
|
||||||
|
target: 'ws://localhost:5000',
|
||||||
|
changeOrigin: true,
|
||||||
|
ws: true,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
@@ -43,4 +52,4 @@ export default defineConfig({
|
|||||||
restoreMocks: true,
|
restoreMocks: true,
|
||||||
globals: true,
|
globals: true,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user