Server configuration¶
The recommended server configuration is to use Apache as a reverse proxy to Gunicorn.
Pre-requisites¶
Diskcache¶
The GWDataFind Server serves information read from a 'diskcache' file
prepared by the diskcache
service.
This needs to be configured an running in order to provide the necessary
input to the GWDataFind Server.
Apache HTTP server¶
Custom pre-configuration may be required to enable Apache HTTP to act as the reverse proxy for gunicorn.
Step-by-step¶
-
Configure your Yum client to include the IGWN Yum Repositories for Scientific Linux 7 or Rocky Linux 7
-
Install the necessary packages using
yum
:yum install gwdatafind-server httpd python3-gunicorn
-
Move the Apache Configuration file into the right place:
ln -s /usr/share/gwdatafind-server/gunicorn.conf /etc/httpd/conf.d/gwdatafind-server.conf
-
Customise the
/etc/gwdatafind-server.ini
file as required -
Start the gwdatafind-server service and the Apache http server:
systemctl start gwdatafind-server.service systemctl start httpd.service