SOLVED - 403 Forbidden Error with OpenResty/Nginx and Vaultwarden /admin Page

Title: Help Needed: 403 Forbidden Error with OpenResty/Nginx and Vaultwarden /admin Page

I’m having trouble with my Vaultwarden and Nginx Proxy Manager setup on a Raspberry Pi and could use some help.

I’m running Vaultwarden, Portainer, and Nginx Proxy Manager using Docker. I’ve set up Nginx Proxy Manager to protect the /admin page of Vaultwarden with HTTP basic authentication. However, when I try to access the /admin page after entering my credentials, I get a 403 Forbidden error with the message “openresty.”

Here’s my Nginx configuration for the /admin location:

location /admin {
    auth_basic "Restricted Access";
    auth_basic_user_file /data/compose/1/data/.htpasswd;

    proxy_pass http://localhost:8080;
    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;
}

I’m not sure what else to check. Could there be additional configurations needed in Nginx Proxy Manager to allow access after authentication? Or could this be related to network issues or communication between Docker containers?

Any help would be greatly appreciated! If you need more information, please let me know.

Thank you!

i found this. github.com/NginxProxyManager/nginx-proxy-manager/issues/383