I’m trying to access my api that is running with nginx and pm2 on Insomnia (Postman like…). Accessing from browser it seems to be ok, just got some “Token not provided”, what I think is natural.

Let me know if I need to pass more info please.

This is my nginx config file:

server {
        listen 80 default_server;
        server_name localhost;

        location / {
                proxy_pass http://localhost:3333;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
                proxy_set_header Host $proxy_host;
                proxy_cache_bypass $http_upgrade;
        }


}

Cheers!

edited by MattIPv4
Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!