How Can I Active Gzip For NGINX

Hello,

I have a cloud server and this server work nginx.

Now I noticed gzip not active and there is like page;

ENABLE GZIP
For NGINX servers:
Copy the generated code into your nginx.conf usually located at /etc/nginx/nginx.conf or /usr/local/nginx/conf/nginx.conf
Add the code below to the http section in the file.
Reload NGINX.
If you do not have access to your NGINX config files you will need to contact your hosting provider to make these changes.
Still having trouble? Open a support ticket.
# Enable Gzip compression
gzip on;

# Compression level (1-9)
gzip_comp_level 5;

# Don't compress anything under 256 bytes
gzip_min_length 256;

# Compress output of these MIME-types
gzip_types
application/atom+xml
application/javascript
application/json
application/rss+xml
application/vnd.ms-fontobject
application/x-font-ttf
application/x-javascript
application/x-web-app-manifest+json
application/xhtml+xml
application/xml
font/opentype
image/svg+xml
image/x-icon
text/css
text/plain
text/javascript
text/x-component;

# Disable gzip for bad browsers
gzip_disable "MSIE [1-6]\.(?!.*SV1)";

Is this a consol command? If so I fear consol command because I was broke everthing and I had to start over again.