some polishing

This commit is contained in:
ville rantanen
2018-11-11 11:43:18 +02:00
parent 9908e5795b
commit 3fc20ee43a
4 changed files with 24 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
A simple shopping list app:
* Runs on gunicorn+flaskr (python)
* Runs on gunicorn+flask (python2.7)
* Multi-user
* Data saved as flat files, can contain markdown
* Syntaxes parsed:
@@ -10,24 +10,30 @@ A simple shopping list app:
* [ ] and [x] tick boxes
Note! Register page is enabled by default, but there is no link to it anywhere.
* Does not (yet) have proper configration file
* Disable registering with env variable: `ENABLE_REGISTER=false`
## Running
To debug, run with `./debug.py`
- To debug, run with `./debug.py`
To run with gunicorn and nginx:
- To run with gunicorn and nginx:
start app: `gunicorn -b 0.0.0.0:8166 -w 2 shop:app`
- start app: `gunicorn -b 0.0.0.0:8000 -w 2 shop:app`
Add in nginx config:
- Add in nginx config:
```
location /myshop/ {
proxy_pass http://127.0.0.1:8166/;
proxy_pass http://127.0.0.1:8000/;
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;
}
```
- Register new user at page http://localhost:8000/register