Run JIRA behind reverse proxy with Nginx and SSL Let’s Encrypt

My config : Debian 9 hosting :
1- PHP apps using Nginx as http web server listing to port 80
2- JIRA 8 using Tomcat as http web server liting to port 8080
Prerequisites
SSL certificate using Let’s Encrypt is generated for subdomain : foo.example.com
In this example, we want to use Nginx as reverse proxy to Tomcat and generate ssl Let’s encrypt certificate so JIRA can be accessed with HyperText Transfer Protocol Secure (HTTPS) on standard HTTP port 80.
1- Configure Nginx Vhost
/etc/nginx/sites-available/foo.example.com
check Nginx : nginx -t
restart Nginx /etc/init.d/nginx restart
2- Configure Tomcat (bundled with JIRA)
Go to <JIRA-INSTALL>/conf/server.xml and add the proxyName and proxyPort elements
restart JIRA :
/etc/init.d/jira stop
/etc/init.d/jira start