root@nginx1:~# cat /etc/nginx/conf.d/proxy.conf
proxy_redirect            off;
proxy_set_header          Host $host;
proxy_set_header          X-Real-IP $remote_addr;
proxy_set_header          X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size      16m;
client_body_buffer_size   128k;
client_header_buffer_size 64k;
proxy_connect_timeout     10;
proxy_send_timeout        60;
proxy_read_timeout        60;
proxy_buffer_size         16k;
proxy_buffers             32 16k;
proxy_busy_buffers_size   64k;
proxy_cache_key           "$scheme://$host$request_uri";
proxy_cache_path          /var/cache/nginx levels=1:2 keys_zone=cache:10m inactive=7d max_size=512m;
root@nginx1:~# cat /etc/nginx/sites-enabled/monsite
server {
   listen      80;
   listen      [::]:80 default ipv6only=on;
   server_name monsite.fr *.monsite.fr;
   access_log  /var/log/nginx/localhost.access.log;

   location / {
      proxy_pass            http://192.168.10.4/;
      proxy_cache           cache;
      proxy_cache_valid     12h;
      proxy_cache_use_stale error timeout invalid_header updating;
   }
}