Add basic documentation
This MR adds a configuration and source content for documentation for the server, to be rendered using gitlab pages.
This closes #8 (closed) via the inclusion of a complete API v1 specification.
Merge request reports
Activity
requested review from @duncan.meacher
assigned to @duncan.meacher
changed milestone to %GWDataFind Server 1.1.0
Example docs can be viewed here: https://duncanmmacleod.docs.ligo.org/-/gwdatafind-server/-/jobs/1846411/artifacts/site/index.html
- docs/configuration.md 0 → 100644
35 ``` 36 37 1. Move the Apache Configuration file into the right place: 38 39 ```shell 40 ln -s /usr/share/gwdatafind-server/gunicorn.conf /etc/httpd/conf.d/gwdatafind-server.conf 41 ``` 42 43 1. Customise the `/etc/gwdatafind-server.ini` file as required 44 45 1. Start the gwdatafind-server service and the Apache http server: 46 47 ```shell 48 systemctl start gwdatafind-server.service 49 systemctl start httpd.service 50 ``` if you start apache and browse before gunicorn is started you'll get an http 500 error. if you start gunicorn and try to browse before apache starts you'll get a timeout error.
One optimization you can do is to setup a system socket that will (re) start gunicorn when a connection is attempted on its port. that would give a reasonably high confidence that gunicorn is started when it is needed.
https://www.freedesktop.org/software/systemd/man/systemd.socket.html
@duncan.meacher, this is deliberately called the 'gwdatafind-server' service because the gunicorn configuration is specific to gwdatafind - the fact that it is gunicorn underneath is effectively irrelevant to the (average) administrator.
@philippe.grassia, could you propose a systemd socket file for this?
added 2 commits
added 2 commits
added 2 commits
mentioned in commit 04ca34e0