From 3b9ccb0dda1d54322a305842144ef1a24e50f47e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Mah=C3=A9?= Date: Thu, 28 Jun 2018 16:32:15 -0700 Subject: [PATCH] add nginx snippet --- INSTALL.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/INSTALL.md b/INSTALL.md index 80e2d11d..b7077e6d 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -25,3 +25,19 @@ createdb -O plume plume * On the Plume server: diesel migration run --database-url postgres://plume:PASSWORD@DBSERVERIP:DBPORT/plume DB_URL=postgres://plume:PASSWORD@DBSERVERIP:DBPORT/plume cargo run # the first launch will ask questions to configure the instance. A second launch will not need the DB_URL. + +## Plume is now accessible as seen on your console. You can have fun now, or configure an nginx proxy with the following excerpt: + + location / { + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header Host $http_host; + + proxy_pass http://localhost:8000; + + client_max_body_size 16m; + } + +# Caveats: +* Pgbouncer is not yet supported ( named transactions are used ).