From 36f65ea9de39967bfc467cf4c3da59e481e8e140 2020-05-09 21:24:20 From: Branko Majic Date: 2020-05-09 21:24:20 Subject: [PATCH] MAR-149: Improved documentation for the test site (more details): - Cover server names. - Cover additional names that should be resolvable towards the web server (for reaching sample web applications) - Include links for testing the sample web applications. --- diff --git a/docs/development.rst b/docs/development.rst index 10fcaaa423871eed942ea978218097b837e83639..4c330bed2def7d04b4cf3c6a8bafd55b6950a38d 100644 --- a/docs/development.rst +++ b/docs/development.rst @@ -415,6 +415,33 @@ so it is easy to set your own domain (see below in step-by-step instructions). Some changes may be necessary to listed commands in that case (i.e. replace every occurance of ``example.com`` with your own domain). +By default, the following hosts are used in test site (listed names +should be resolvable towards the servers): + +- ``ldap.example.com``, acting as LDAP server +- ``xmpp.example.com``, acting as XMPP server +- ``mail.example.com``, acting as mail server +- ``web.example.com``, acting as web server +- ``backup.example.com``, acting as backup server +- ``ws01.example.com``, acting as "workstation" (mainly demonstrating + use of mail forwarder role) + +The web server is also set-up with one sample PHP application and two +WSGI applications deployed via roles: + +- ``phpinfo``, used to serve information about the local PHP + installation. +- ``wsgihello``, small hello world application using Python 2 +- ``wsgihello2``, small hello world application using Python 3 and a + couple of additional ``wsgi_website`` role parameters. + +To make the web applications reachable, make sure the web server +(``web.example.com``) IP is also resolvable via names: + +- ``phpinfo.example.com`` (``phpinfo`` application/role) +- ``wsgi.example.com`` (``wsgihello`` application/role) +- ``wsgireq.example.com`` (``wsgihello2`` application/role) + All example commands listed within this section should be ran from within the ``testsite`` directory in order to have proper environment available for playbook runs. @@ -658,3 +685,15 @@ configuration, run (take note it is upper-case ``F``):: mutt -F mutt/john.doe mutt -F mutt/jane.doe + +To test the provided web applications, use the following links in a +browser: + +.. note:: + To avoid untrusted certificate errors, it is recommended to test + the links with dedicated instance of Mozilla Firefox, and to import + the CA certificate (``tls/ca.pem``) into it. + +- https://phpinfo.example.com/ +- https://wsgi.example.com/ +- https://wsgireq.example.com/