Skip to content

Commit

Permalink
devel: add keep alive header for proxy
Browse files Browse the repository at this point in the history
Since new version of webpack the dev server should support Keep-Alive
header to avoid dev server crashes.

Co-Authored-by: Johnny Mariéthoz <Johnny.Mariethoz@rero.ch>
  • Loading branch information
jma committed Dec 13, 2022
1 parent cdb3291 commit 2cd6c8c
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions proxy.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"changeOrigin": true,
"pathRewrite": {
"^/patrons": "https://localhost:5000/patrons"
},
"headers": {
"Connection": "keep-alive"
}
},
"/schemas": {
Expand All @@ -15,6 +18,9 @@
"changeOrigin": true,
"pathRewrite": {
"^/schemas": "https://localhost:5000/schemas"
},
"headers": {
"Connection": "keep-alive"
}
},
"/api/*": {
Expand All @@ -24,6 +30,9 @@
"changeOrigin": true,
"pathRewrite": {
"^/api": "https://localhost:5000/api"
},
"headers": {
"Connection": "keep-alive"
}
},
"/notifications/*": {
Expand All @@ -33,6 +42,9 @@
"changeOrigin": true,
"pathRewrite": {
"^/notifications": "https://localhost:5000/notifications"
},
"headers": {
"Connection": "keep-alive"
}
},
"/lang/*": {
Expand All @@ -42,6 +54,9 @@
"changeOrigin": true,
"pathRewrite": {
"^/api": "https://localhost:5000/lang"
},
"headers": {
"Connection": "keep-alive"
}
},
"/static/*": {
Expand All @@ -51,6 +66,9 @@
"changeOrigin": true,
"pathRewrite": {
"^/static": "https://localhost:5000/static"
},
"headers": {
"Connection": "keep-alive"
}
},
"/global/documents/*": {
Expand All @@ -60,6 +78,9 @@
"changeOrigin": true,
"pathRewrite": {
"^/global/documents": "https://localhost:5000/global/documents"
},
"headers": {
"Connection": "keep-alive"
}
},
"/aoste/documents/*": {
Expand All @@ -69,6 +90,9 @@
"changeOrigin": true,
"pathRewrite": {
"^/aoste/documents": "https://localhost:5000/aoste/documents"
},
"headers": {
"Connection": "keep-alive"
}
},
"/highlands/documents/*": {
Expand All @@ -78,6 +102,9 @@
"changeOrigin": true,
"pathRewrite": {
"^/highlands/documents": "https://localhost:5000/highlands/documents"
},
"headers": {
"Connection": "keep-alive"
}
},
"/fictive/documents/*": {
Expand All @@ -87,6 +114,9 @@
"changeOrigin": true,
"pathRewrite": {
"^/fictive/documents": "https://localhost:5000/fictive/documents"
},
"headers": {
"Connection": "keep-alive"
}
},
"/global/persons/*": {
Expand All @@ -96,6 +126,9 @@
"changeOrigin": true,
"pathRewrite": {
"^/global/persons": "https://localhost:5000/global/persons"
},
"headers": {
"Connection": "keep-alive"
}
},
"/aoste/persons/*": {
Expand All @@ -105,6 +138,9 @@
"changeOrigin": true,
"pathRewrite": {
"^/aoste/persons": "https://localhost:5000/aoste/persons"
},
"headers": {
"Connection": "keep-alive"
}
},
"/highlands/persons/*": {
Expand All @@ -114,6 +150,9 @@
"changeOrigin": true,
"pathRewrite": {
"^/highlands/persons": "https://localhost:5000/highlands/persons"
},
"headers": {
"Connection": "keep-alive"
}
},
"/fictive/persons/*": {
Expand All @@ -123,6 +162,9 @@
"changeOrigin": true,
"pathRewrite": {
"^/fictive/persons": "https://localhost:5000/fictive/persons"
},
"headers": {
"Connection": "keep-alive"
}
}
}

0 comments on commit 2cd6c8c

Please sign in to comment.