reST is hard
This commit is contained in:
parent
6f66960df8
commit
8a408aea1d
@ -216,7 +216,7 @@ comments for a relative URL to support HTTP, HTTPS and even domain transfers
|
|||||||
without manual intervention. But you can chain Isso to support multiple
|
without manual intervention. But you can chain Isso to support multiple
|
||||||
websites on different domains.
|
websites on different domains.
|
||||||
|
|
||||||
The following example uses [gunicorn](http://gunicorn.org/) as WSGI server (you
|
The following example uses `gunicorn <http://gunicorn.org/>`_ as WSGI server (you
|
||||||
can use uWSGI as well). It is *not* possible to run the isso executable for
|
can use uWSGI as well). It is *not* possible to run the isso executable for
|
||||||
multiple sites.
|
multiple sites.
|
||||||
|
|
||||||
@ -228,17 +228,23 @@ Let's say you maintain two websites, like foo.example and other.foo:
|
|||||||
[general]
|
[general]
|
||||||
host = http://foo.example/
|
host = http://foo.example/
|
||||||
dbpath = /var/lib/isso/foo.example.db
|
dbpath = /var/lib/isso/foo.example.db
|
||||||
|
|
||||||
$ cat /etc/isso.d/other.foo.cfg
|
$ cat /etc/isso.d/other.foo.cfg
|
||||||
[general]
|
[general]
|
||||||
host = http://other.foo/
|
host = http://other.foo/
|
||||||
dbpath = /var/lib/isso/other.foo.db
|
dbpath = /var/lib/isso/other.foo.db
|
||||||
|
|
||||||
|
Then you run Isso with gunicorn like this:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
$ export ISSO_SETTINGS="/etc/isso.d/foo.example.cfg;/etc/isso.d/other.foo.cfg"
|
$ export ISSO_SETTINGS="/etc/isso.d/foo.example.cfg;/etc/isso.d/other.foo.cfg"
|
||||||
$ gunicorn isso.dispatch -b localhost:8080
|
$ gunicorn isso.dispatch -b localhost:8080
|
||||||
|
|
||||||
Now, there are two options to configure the webserver:
|
Now, there are two options to configure the webserver:
|
||||||
|
|
||||||
1. using a single host to serve comments for both websites
|
1. using a single host to serve comments for both websites
|
||||||
2. different hosts for both websites
|
2. different hosts for both websites
|
||||||
|
|
||||||
In the former case, Isso dispatches based on the HTTP Referer and (if provided)
|
In the former case, Isso dispatches based on the HTTP Referer and (if provided)
|
||||||
HTTP Origin. If you expect users to supress their referer completely, you
|
HTTP Origin. If you expect users to supress their referer completely, you
|
||||||
|
Loading…
Reference in New Issue
Block a user