From 594c1585f8cada38564e51600bcc622f2150e83a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Jochum?= Date: Wed, 30 Sep 2020 15:17:23 +0200 Subject: [PATCH] Document localserver installing --- README.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/README.md b/README.md index 50d3df1..2538856 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,44 @@ else make debian ``` +## Installing the **localserver** + +First install the package, replace "site" with your real site. + +```bash +dpkg -i +apt install -f +``` + +Next create /etc/lql-api/`site`, with the following contents: + +```bash +LISTEN="localhost:8080" +DEBUG="-d" +``` + +Now you can start the lql-api + +```bash +systemctl start lql-api@ +``` + +Next create an apache proxy for it in /etc/apache2/conf-available/zzzz_`site`_lql-api.conf + +```apache + + + Order allow,deny + allow from all + + + /lql-api/> + ProxyPass http://127.0.0.1:8080/ retry=0 timeout=120 + ProxyPassReverse http://127.0.0.1:8080/ + + +``` + ## License MIT - Copyright 2020 by Webmeisterei GmbH