I have deployed my front end application in 7000 ports. So I need to write a rule in Nginx so that whenever all the HTTP request from 7000 ( HTTP://example.com:7000) port will automatically redirect HTTPS in the same port(HTTPS://example.com:7000)
Please support me to solve the issue. This is my current Nginx configuration file
 server { listen 7000 ssl; ssl_certificate /new_keys/new_k/ssl_certificate/star_file.crt; ssl_certificate_key /new_keys/new_k/ssl_certificate/private.key; root /home_directory; index index.html index.htm index.nginx-debian.html; server_name _; location / { try_files $uri $uri/ =404; } error_page 404 /custom_404.html; location = /custom_404.html { root /usr/share/nginx/html; internal; } }  Note :
- Application URL that serves in 7000 port is "http://example.com:7000/#/
 - Port 80 was already taken for another application
 - Currently I have a wild card SSL certificate
 - The server IP was pointed only to a single domain only