summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/tools/third_party/websockets/example/deployment/nginx/nginx.conf
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/tools/third_party/websockets/example/deployment/nginx/nginx.conf')
-rw-r--r--testing/web-platform/tests/tools/third_party/websockets/example/deployment/nginx/nginx.conf25
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/web-platform/tests/tools/third_party/websockets/example/deployment/nginx/nginx.conf b/testing/web-platform/tests/tools/third_party/websockets/example/deployment/nginx/nginx.conf
new file mode 100644
index 0000000000..67aa0086d5
--- /dev/null
+++ b/testing/web-platform/tests/tools/third_party/websockets/example/deployment/nginx/nginx.conf
@@ -0,0 +1,25 @@
+daemon off;
+
+events {
+}
+
+http {
+ server {
+ listen localhost:8080;
+
+ location / {
+ proxy_http_version 1.1;
+ proxy_pass http://websocket;
+ proxy_set_header Connection $http_connection;
+ proxy_set_header Upgrade $http_upgrade;
+ }
+ }
+
+ upstream websocket {
+ least_conn;
+ server unix:websockets-test_00.sock;
+ server unix:websockets-test_01.sock;
+ server unix:websockets-test_02.sock;
+ server unix:websockets-test_03.sock;
+ }
+}