Magento 2.3.3 – Centos7 – Nginx – How to setup .conf file?

Following tutorial : https://devdocs.magento.com/guides/v2.3/install-gde/composer.html

 

After download magento by using,

composer create-project –repository=https://repo.magento.com/ magento/project-community-edition=2.3.3 magento

 

Folder path : var/ww/html/magento

 

I am using centos 7 – Nginx how to run following last 2 commands,

 

find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} +
find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} +
chown -R :www-data . # Ubuntu
chmod u+x bin/magento

Finally my installation command,

bin/magento setup:install –base-url=http://127.0.0.1/magento â€“db-host=localhost –db-name=magento –db-user=root –[email protected] –admin-firstname=mage –admin-lastname=mage –[email protected] –admin-user=mage –[email protected] –language=en_US –currency=INR –timezone=Asia/Kolkata –use-rewrites=1

 

How to setup magento.conf in etc/nginx/config.d/ magento.conf?