Edit the file /etc/elasticsearch/elasticsearch.yml and add the following
Start the service and check its status
If you see an error like 'Cannot allocate memory' you must be running a small instance. Lower the JVM heap size by editing the file /etc/elasticsearch/jvm.options by changing the values xms1g to xms100m and xmx1g to xmx100m.
If you changed your heap size - restart the service as follows:
Install Caddy Server to support SSL
Caddy is HTTP server that supports automatic SSL through LetsEncrypt. The following installs the personal version of Caddy.
Give caddy the ability to bind to privileged ports as a non-root user:
Set up needed user, group, and directories
Create Caddy Systemd service unit
Edit the file /etc/caddy/Caddyfile as follows:
Start the caddy service
Create environment variables
Edit the file /etc/environment and add the following environment variables
Load environment variables into your session
Run database migrations
Configure the app
Edit ~/pm415/config.js to change the appkey and add your domain to the whitelist and siteURL