docs/install: improve notes about self hosting

This commit is contained in:
rr- 2016-06-03 21:27:39 +02:00
parent f1108a878b
commit 73feba4b77

View file

@ -130,10 +130,11 @@ Below are described the methods to integrate the API into a web server:
1. Run API locally with `waitress`, and bind it with a reverse proxy. In this 1. Run API locally with `waitress`, and bind it with a reverse proxy. In this
approach, the user needs to (from within `virtualenv`) install `waitress` approach, the user needs to (from within `virtualenv`) install `waitress`
with `pip install waitress` and then start `szurubooru` with with `pip install waitress` and then start `szurubooru` with `./host-waitress`
`./server/host-waitress` (see `--help` for details). Then the user needs to from within the `server/` directory (see `--help` for details). Then the
add a virtual host that delegates the API requests to the local API server, user needs to add a virtual host that delegates the API requests to the
and the browser requests to the `client/public/` directory. local API server, and the browser requests to the `client/public/`
directory.
2. Alternatively, Apache users can use `mod_wsgi`. 2. Alternatively, Apache users can use `mod_wsgi`.
3. Alternatively, users can use other WSGI frontends such as `gunicorn` or 3. Alternatively, users can use other WSGI frontends such as `gunicorn` or
`uwsgi`, but they'll need to write wrapper scripts themselves. `uwsgi`, but they'll need to write wrapper scripts themselves.
@ -173,5 +174,5 @@ data_url: 'http://big.dude/data/'
data_dir: '/home/rr-/src/maintained/szurubooru/client/public/data' data_dir: '/home/rr-/src/maintained/szurubooru/client/public/data'
``` ```
Then the backend is started with `./server/host-waitress` from within Then the backend is started with `host-waitress` from within `virtualenv` and
`virtualenv`. `./server/` directory.