From 4a6ac0302fb79cba1fc479814158dcd35b4356f7 Mon Sep 17 00:00:00 2001 From: "kam (from the studio)" Date: Wed, 18 Jan 2023 18:20:45 +0100 Subject: [PATCH] typo --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1fcbcad..f0aa2b9 100644 --- a/README.md +++ b/README.md @@ -169,14 +169,15 @@ server { root /var/www/html - # ADD THIS SECTION + # ADD FROM HERE location /drw/ { proxy_pass http://localhost:3000/soupboat/drw/; include proxy_params; proxy_set_header Host $http_host; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; - } # END OF SECTION + } + # TO HERE } ``` @@ -185,7 +186,7 @@ The lines that you should edit according your configurations are: - `location /drw/` The name of the location _/drw/_ is up to you, and it's the address where the app will be served. In this case will be _hub.xpub.nl/soupboat/drw/_. - `proxy_pass http://localhost:3000/soupboat/drw/;` - The very same name, as well as eventual prefixes, need to be specified in the line of _proxy_pass_. + The very same name, as well as eventual prefixes, need to be specified in the line of _proxy pass_. The port, in this example set to _3000_, it's the port where Express is mounting the application. By default is 3000, but you can edit it according to the configurations of the express server. The three `proxy_set_header` Host, Upgrade and Connection are necessary to make the Websocket connection work.