There are currently two ways of installing MOLGENIS on the server. We use several building blocks to deploy MOLGENIS on servers. The configuration is based upon RPM's which are used in Ansible to configure the deployment.
The architecture of MOLGENIS is displayed in the following figure.
In the pg_bha.conf You need to update to these lines:
# TYPE DATABASE USER ADDRESS METHOD# "local" is for Unix domain socket connections onlylocal all all peer# IPv4 local connections:hostallall127.0.0.1/32md5# IPv6 local connections:hostallall::1/128md5# Allow replication connections from localhost, by a user with the# replication privilege.#local replication postgres peer#host replication postgres 127.0.0.1/32 ident#host replication postgres ::1/128 ident
In the postgres.conf you need to update these lines:
max_locks_per_transaction=1024
Restart the service.
Elasticsearch
Open elasticsearch.yml in the Elasticsearch config directory and set the following properties:
In the /etc/security/limits.conf update this line:
elasticsearch-nofile65536
Add this this file in /etc/sysctl.d/99-elasticsearch.conf with the following content.
vm.swappiness=1
Restart the service.
Configure Tomcat
After you install Apache Tomcat you first need to install MOLGENIS before you start the service.
Configure HTTPD
We use proxy passes to expose Tomcat through Apache. You can use this file as template to expose your MOLGENIS instance. Create the file in /etc/httpd/conf.d/
molgenis.conf
<VirtualHost molgenis.your-domain.ext:80>
ServerAdmin admin@molgenis.your-domain.ext
ServerName molgenis.your-domain.ext
ServerAlias molgenis.your-domain.ext
RewriteEngine on
RewriteCond %{SERVER_NAME} =molgenis.your-domain.ext
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [NE,R=permanent]
</VirtualHost>
<VirtualHost molgenis.your-domain.ext:443>
ServerAdmin admin@your-domain.ext
ServerName molgenis.your-domain.ext
ServerAlias molgenis.your-domain.ext
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
RequestHeader set X-Forwarded-Proto "https"
RequestHeader set X-Forwarded-Port "443"
SSLEngine On
SSLCertificateFile /etc/pki/tls/certs/**#your cert#**.crt
SSLCertificateKeyFile /etc/pki/tls/private/**#your key#**.key
SSLCertificateChainFile /etc/pki/tls/certs/**#your server-chain#**.crt
</VirtualHost>