Use Rocket-Nginx under RunCloud

Login as root then enter following commands.

cd /etc/nginx-rc
git clone https://github.com/satellitewp/rocket-nginx.git
cd rocket-nginx
cp rocket-nginx.ini.disabled rocket-nginx.ini
php rocket-parser.php

As of version 2.1.1 there is a typo in the rocket-nginx.ini , change media_header to medias_header

My template: https://gist.github.com/Dibbyo456/2b08a4ff74665ccc40e0985b8f22292a

Create file {app-name}.location.main-before.rocket.conf on /etc/nginx-rc/extra.d/ with following line:

include /etc/nginx-rc/rocket-nginx/default.conf;

Change default.conf to example.com.conf depending on the app if custom settings were used.

Share your thoughts by leaving a comment below.