We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84d222c commit 55d6f01Copy full SHA for 55d6f01
src/routes.ts
@@ -2,11 +2,11 @@ import type { Route } from './type';
2
3
export function generateRoutesConfig(routes: Route[]): string {
4
return routes.map(route => `
5
- location ${route.path} {
+ location = ${route.path} {
6
if ($request_method = ${route.method}) {
7
- proxy_set_header Host $host;
8
proxy_pass http://${route.target};
9
proxy_http_version 1.1;
+ proxy_set_header Host $host;
10
proxy_set_header Upgrade $http_upgrade;
11
proxy_set_header Connection "upgrade";
12
}
0 commit comments