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");
});