mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 03:20:12 +08:00
feat: setup proxy and x-forwarded-for header
This commit is contained in:
1 parent
14b2c1b0d5
commit
1d2ad733ed
3 files changed
+5
No files matched your search
@@ -9,11 +9,13 @@ export default defineConfig({
|
||||
'/api': {
|
||||
target: process.env.API_TARGET || 'http://localhost:3000',
|
||||
changeOrigin: false,
|
||||
xfwd: true,
|
||||
},
|
||||
'/socket.io': {
|
||||
target: process.env.API_TARGET || 'ws://localhost:3000',
|
||||
changeOrigin: false,
|
||||
ws: true,
|
||||
xfwd: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user