To use Nginx performance settings on Drupal 8, follow these steps:
1. Edit the Nginx configuration file for your Drupal site. This file is typically located at /etc/nginx/sites-available/default or /etc/nginx/nginx.conf.
1. Add the following settings to the http block:
```
http {
…
# Enable Nginx caching
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=drupal_cache:10m inactive=60m;
proxy_cache_key “$scheme$request_method$host$request_uri”;
1. Edit the server block for your Drupal site and add the following settings:
```
server {
…
# Set the root directory of your Drupal site
root /var/www/html/drupal;
1. Save the configuration file and restart Nginx:
```
sudo service nginx restart
```
These settings should improve the performance of your Drupal site by enabling caching, compressing data, and increasing timeouts. Make sure to test your site after making these changes to ensure that everything is working correctly.