From 115cc9a213aa406fc142f377af1381196a1dfd6f Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Mon, 4 Jul 2016 10:28:15 +0000 Subject: [PATCH] README.md edited online with Bitbucket --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..9552559 --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +# MDShop # + +A simple shopping list app: + +* Runs on gunicorn+flaskr (python) +* multi-user +* data saved as flat files, can contain markdown + +Note! register page is enabled by default, but there is no link to it anywhere. + +## Running + +To debug, run with `./debug.py` + +To run with gunicorn and nginx: + +start app: `gunicorn -b 0.0.0.0:8166 -w 2 shop:app` + +Add in nginx config: + +``` +location /myshop/ { + proxy_pass http://127.0.0.1:8166/; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Scheme $scheme; + proxy_set_header X-Script-Name /myshop; + } +``` \ No newline at end of file