Just place it in /etc/nginx/conf.d/
client_body_timeout 12;
client_header_timeout 12;
keepalive_timeout 15;
send_timeout 10;
client_body_buffer_size 512k; # http2 fix: https://blog.cloudflare.com/delivering-http-2-upload-speed-improvements/
client_header_buffer_size 1k;
client_max_body_size 8m;
large_client_header_buffers 4 4k;
gzip on;
gzip_vary on;
gzip_min_length 10240;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;
gzip_disable "msie6";