From 1e8672656caf50630bbd78b90db7b8f9b460f650 Mon Sep 17 00:00:00 2001 From: Luna Mendes Date: Fri, 6 Jul 2018 03:31:12 -0300 Subject: [PATCH] add sample nginx.conf --- nginx.conf | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 nginx.conf diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..9590d5c --- /dev/null +++ b/nginx.conf @@ -0,0 +1,22 @@ +# Main litecord HTTP proxy. +server { + server_name main.somewhere; + + location / { + proxy_pass http://localhost:5000; + } +} + +# Main litecord websocket proxy. +server { + server_name websocket.somewhere; + + location / { + proxy_pass http://localhost:5001; + + # those options are required for websockets + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + } +}