Skip to content

Commit

Permalink
Improved documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitar committed Jun 10, 2012
1 parent 5305f84 commit 4da1c6f
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions docs/installation.rst
Expand Up @@ -41,9 +41,6 @@ settings should match those configured in Nginx.

.. _py-hbpush: https://github.com/mitar/py-hbpush/tree/mitar

We do not want our push server to be publicly accessible, so ``INTERNAL_IPS``
should be configured for passthrough to work.

You should add passthrough URLs to ``urls.py``, matching URL configured in
settings::

Expand All @@ -55,5 +52,18 @@ settings::
# ...
)

Passthrough URLs are not publicly accessible, so you should use
``INTERNAL_IPS`` to configure from which IPs they should be accessible. As you
will probably run both Djagno development server and push server daemon on the
same machine, this is probably simply::

INTERNAL_IPS = (
'127.0.0.1',
)

When used in production where Nginx is making passthrough requests, it should
match IP(s) on which you have Nginx running.

If you do not need or want passthrough just do not define it in ``PUSH_SERVER``
setting. Passthrough URLs are also not needed in this case.
setting. Passthrough URLs and ` INTERNAL_IPS`` setting are also not needed in
this case.

0 comments on commit 4da1c6f

Please sign in to comment.