Having trouble to configure cloud app with nginx

Hi Experts,

I have successfully configured SSL certificate with nginx and I am trying to do reverse proxy for cloud apps using nginx.

Problem- If I configure app1 in nginx and trying hit URL( https://csv.empyra.com/app1) then I am able to get a request entry in my app’s log for JSON descriptor file but I am not able to access my JSON descriptor file in a browser (same thing is working with url http://localhost:3000/). Below is my configuration

Please let me know if I am missing something in the configuration? @danielwester

nginx config file:

 # HTTPS server
    #
   server {
        listen       443 ssl;
        server_name  <hostname>.com;

        ssl_certificate /etc/bundle.crt;
	    ssl_certificate_key /etc/rsa_domain.rsa;

        ssl_session_cache    shared:SSL:1m;
        ssl_session_timeout  5m;

        ssl_ciphers  HIGH:!aNULL:!MD5;
        ssl_prefer_server_ciphers  on;

        location /app1 {
             proxy_pass http://localhost:3000/;
			
        }
		
    }

routes/index.js

app.get("/", (req, res) => {
   res.redirect("/atlassian-connect.json");
    }); 

The proxy_pass isn’t rewriting the redirect. Change http://localhost:3000/ to http://localhost:3000 and it should work.

See How do I rewrite URLs in a proxy response in NGINX - Stack Overflow for more details

Hi @danielwester,

I have change URL also http://localhost:3000/ to http://localhost:3000 but still not working. I have attached a screenshot here.