doc: add a README file
This commit is contained in:
parent
585100d2cc
commit
0d0991a3b1
|
@ -0,0 +1,48 @@
|
|||
wcsinst
|
||||
=======
|
||||
|
||||
wcsinst is a web application to deploy w.c.s. instances; it is released under
|
||||
the GNU AGPL Licence.
|
||||
|
||||
|
||||
Architecture
|
||||
------------
|
||||
|
||||
This project is composed of two Django applications; wcsinst provides a model
|
||||
and is expected to be installed as part of an administrative portal; wcsinstd
|
||||
provides the web API to deploy w.c.s. instances and should be installed on its
|
||||
own, on the host instances should be deployed.
|
||||
|
||||
|
||||
Configuration
|
||||
-------------
|
||||
|
||||
If the WCSINSTD_URL environment variable is set, ./manage.py will run itself as
|
||||
a standalone wcsinst (admin) site. Go to /admin/.
|
||||
|
||||
Example: WCSINSTD_URL=http://127.0.0.1:8001/ ./manage.py runserver
|
||||
|
||||
The wcsinstd application expects a WCSINST_WCS_APP_DIR setting, that should
|
||||
point to the w.c.s. application directory (typically /var/lib/wcs/).
|
||||
|
||||
Additionally it expects site skeletons to be made available from the
|
||||
media/skeletons directory; the default skeleton should go in a subdirectory
|
||||
named "default".
|
||||
|
||||
A skeleton directory has the following files:
|
||||
|
||||
- export.wcs: as produced from wcs, admin/export
|
||||
- idff-metadata-template: template file for ID-FF 1.2 metadata (optional)
|
||||
- saml2-metadata-template: template file for SAMLv2 metadata (optional)
|
||||
- private-key.pem & public-key.pem: pair of keys for ID-FF/SAML (optional)
|
||||
- idp-metadata.xml: metadata of the identity provider (optional)
|
||||
- site-options.cfg: template file for the w.c.s. site-options.cfg file
|
||||
- apache-vhost.conf: tempalte file for the Apache virtual host configuration
|
||||
|
||||
The template files contains template strings (cf the Python documentation);
|
||||
there is a single variable made available, named domain (hence ${domain} to
|
||||
use it).
|
||||
|
||||
The wcsinstd application should be able to run "sudo -n /etc/init.d/apache2
|
||||
reload", to reload virtual hosts configuration. Virtual host configuration
|
||||
files are created in $media/vhosts.d
|
Reference in New Issue