Host Web App and point DNS to said app

I am hosting a web application via a home server. I have my Cloudflare DNS A record pointed to my public ip and my firewall is off. I am using Cloudflare for SSL.

My app is running on local host (127.0.0.1) port 1624.

I am using nginx. My server name is my public ip and listen is port 80.

My reverse proxy is pointed at 127.0.0.1:1624.
I have port 80 open on my router as well.

For some reason I am not able to connect to my website. What could be causing this?

The developer of the web app has told me to use my domain name for the server name and keep the port as default 80 while pointing the reverse proxy to 127.0.0.1:1624.

I’ve tried:

Nginx conf -

  • server_name > domain NAME
  • server_name > public ip

My app is working when I go to 127.0.0.1:1624 just not my domain.

If you are trying to use a port that isn’t 443 then you need to use an Origin Rule for destination port otherwise user will have to add the port each time.

This is not what I am looking for although I appreciate your help.

Sorry, guess I am confused what you are asking then.

What do you mean by point application to domain. Usually you point your domain to an application via a DNS record

Not always, but they are useful if you want to run multiple applications.

I will edit and rephrase my question. My apologies

What do you mean by point application to domain. Usually you point your domain to an application via a DNS record

I meant point my dns to my app.

If you are using port 80 then you need to disable SSL for the domain as Cloudflare will try HTTPS which is 443. You should look at getting an SSL certificate for your origin server so that the requests will always be HTTPS.

I appreciate your help! Turns out it was something as simple as forwarding the wrong ip. I was forwarding my public ip when it should’ve been my internal ip.

I meant to close my question. Thanks again!