Error 403 Access Forbidden when using Jenkins with nginx

Hello everyone, I’m tryng to use Jenkins in my ubuntu 20.04 server. I installed jenkins and the status shows running. I’m also using nginx as proxy and this is the cofiguration I use:

location /jenkins/ {

            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
            proxy_redirect off;
            proxy_pass http://localhost:8080/;
            error_log             /var/log/nginx/jenkins.error.log;
            access_log            /var/log/nginx/jenkins.access.log ;


when consulting the url I get a 403 error message, saying access forbidden. I tried to watch the logs of the nginx, but It doesn’t show anything.

Please help!