1{
2 proxy: {
3 // Simple proxy
4 '/api': 'http://example.com',
5
6 // With options
7 '/api2': { target: 'http://example.com', ws: false },
8
9 // Proxy to backend unix socket
10 '/api3': {
11 changeOrigin: false,
12 target: { socketPath: '/var/run/http-sockets/backend.sock' }
13 }
14 }
15}