README: Add type to every codeblock for PyPi.
PyPi apparently has a slightly patched/weird version of docutils which breaks when code-block::'s don't have a type.
This commit is contained in:
16
README.rst
16
README.rst
@@ -172,7 +172,7 @@ If you don't need to change any settings you can skip the creation of the
|
|||||||
Now create a ``wsgi.py`` with the following content in the newly created
|
Now create a ``wsgi.py`` with the following content in the newly created
|
||||||
puppetboard directory:
|
puppetboard directory:
|
||||||
|
|
||||||
.. code-block::
|
.. code-block:: python
|
||||||
|
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
import os
|
import os
|
||||||
@@ -185,7 +185,7 @@ Make sure this file is owned by the user and group the webserver runs as.
|
|||||||
|
|
||||||
The last thing we need to do is configure Apache:
|
The last thing we need to do is configure Apache:
|
||||||
|
|
||||||
.. code-block::
|
.. code-block:: apache
|
||||||
|
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
ServerName puppetboard.example.tld
|
ServerName puppetboard.example.tld
|
||||||
@@ -240,7 +240,7 @@ If you don't need to change any settings you can skip the creation of the
|
|||||||
Now create a ``passenger_wsgi.py`` with the following content in the newly
|
Now create a ``passenger_wsgi.py`` with the following content in the newly
|
||||||
created puppetboard directory:
|
created puppetboard directory:
|
||||||
|
|
||||||
.. code-block::
|
.. code-block:: python
|
||||||
|
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
import os
|
import os
|
||||||
@@ -264,7 +264,7 @@ this setting will take precedence over it.
|
|||||||
|
|
||||||
Now the only thing left to do is configure Apache:
|
Now the only thing left to do is configure Apache:
|
||||||
|
|
||||||
.. code-block::
|
.. code-block:: apache
|
||||||
|
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
ServerName puppetboard.example.tld
|
ServerName puppetboard.example.tld
|
||||||
@@ -311,7 +311,7 @@ If you don't need to change any settings you can skip the creation of the
|
|||||||
Now create a ``wsgi.py`` with the following content in the newly created
|
Now create a ``wsgi.py`` with the following content in the newly created
|
||||||
puppetboard directory:
|
puppetboard directory:
|
||||||
|
|
||||||
.. code-block::
|
.. code-block:: python
|
||||||
|
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
import os
|
import os
|
||||||
@@ -333,7 +333,7 @@ Feel free to change the port to something other than ``9090``.
|
|||||||
|
|
||||||
The last thing we need to do is configure nginx to proxy the requests:
|
The last thing we need to do is configure nginx to proxy the requests:
|
||||||
|
|
||||||
.. code-block::
|
.. code-block:: nginx
|
||||||
|
|
||||||
upstream puppetboard {
|
upstream puppetboard {
|
||||||
server 127.0.0.1:9090;
|
server 127.0.0.1:9090;
|
||||||
@@ -372,7 +372,7 @@ Apache
|
|||||||
|
|
||||||
Inside the ``VirtualHost``:
|
Inside the ``VirtualHost``:
|
||||||
|
|
||||||
.. code-block::
|
.. code-block:: apache
|
||||||
|
|
||||||
<Location "/">
|
<Location "/">
|
||||||
AuthType Basic
|
AuthType Basic
|
||||||
@@ -387,7 +387,7 @@ nginx
|
|||||||
|
|
||||||
Inside the ``location / {}`` block that has the ``uwsgi_pass`` directive:
|
Inside the ``location / {}`` block that has the ``uwsgi_pass`` directive:
|
||||||
|
|
||||||
.. code-block::
|
.. code-block:: nginx
|
||||||
|
|
||||||
auth_basic "Puppetboard";
|
auth_basic "Puppetboard";
|
||||||
auth_basic_user_file /path/to/a/file.htpasswd;
|
auth_basic_user_file /path/to/a/file.htpasswd;
|
||||||
|
|||||||
Reference in New Issue
Block a user