Skip to content

Commit 3ae23eb

Browse files
findoffPooya Parsa
authored andcommitted
docs: add unix socket example (#52)
1 parent cea72ac commit 3ae23eb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,13 @@ Keys are [context](https://github.com/chimurai/http-proxy-middleware#context-mat
8989
'/api': 'http://example.com',
9090

9191
// With options
92-
'/api2': { target: 'http://example.com', ws: false }
92+
'/api2': { target: 'http://example.com', ws: false },
93+
94+
// Proxy to backend unix socket
95+
'/api3': {
96+
changeOrigin: false,
97+
target: { socketPath: '/var/run/http-sockets/backend.sock' }
98+
}
9399
}
94100
}
95101
```

0 commit comments

Comments
 (0)