Hi,
I have the latest version of Obsidian installed on CentOS 8 and I use Nginx.
Unfortunately, I cannot configure "/etc/nginx/sites-available" for Smush pro. I can't find right tutorial on the net.
I should insert the commands below in Nginx:
Could someone kindly explain me step by step the commands to integrate this data in Nginx and above all tell me how I can configure "/etc/nginx/sites-available"?
Thanks
I have the latest version of Obsidian installed on CentOS 8 and I use Nginx.
Unfortunately, I cannot configure "/etc/nginx/sites-available" for Smush pro. I can't find right tutorial on the net.
I should insert the commands below in Nginx:
Code:
# BEGIN SMUSH-WEBP
location ~* "wp-content\/(uploads\/)(.*.(?:png|jpe?g))" {
add_header Vary Accept;
set $image_path $2;
if (-f "/var/www/vhosts/domain.net/httpdocs/wp-content/smush-webp/disable_smush_webp") {
break;
}
if ($http_accept !~* "webp") {
break;
}
try_files /wp-content/smush-webp/$image_path.webp $uri =404;
}
# END SMUSH-WEBP
Could someone kindly explain me step by step the commands to integrate this data in Nginx and above all tell me how I can configure "/etc/nginx/sites-available"?
Thanks
Last edited by a moderator: