Hi @finalwebsites, welcome to the Cleavr forum!
Here is a resource WP Rocket provides with some tips working with NGINX https://docs.wp-rocket.me/article/37-nginx-configuration-for-wp-rocket and includes a link to a project that looks to deep dive into config settings even more - https://github.com/SatelliteWP/rocket-nginx.
For modifying NGINX settings in Cleavr. There is currently server level configs you can add via server > services > NGINX settings (wrench icon)
. The same is available for PHP.
If you choose to use FastCGI, you can enable that for a site and modify settings from Cleavr.
For modifying NGINX settings at the site level - this is something we’re planning on adding very soon. But, in the mean time, can be modified on server via SSH or SFTP.
For example, a common task might be to tweak cache settings for images -
- SSH into server (I like SSH and console commands as it feels quicker, but file locations will be same for SFTP)
- Navigate to NGINX configs -
cd /etc/nginx/sites-available
- Then you can view the current sites set up via command
ls -alt
- To edit a site’s settings using vim,
vim <sitename>
Then you can edit accordingly -
location ~* \.(gif|jpg|jpeg|png|css|js|svg)$ {
expires max;
access_log off;
}
The above is just a generic example to show you where the site level configs are.
I hope that helps!
Here are some guides on accessing Cleavr managed servers that may be helpful -