Swag htpasswd does not work anymore

Today I enter in my sites which are protected from being accessed with htpasswd in the swag proxy and the sites are exposed unprotected.
I double checked all the .conf files in the proxy-confs folder and the affected services all have the following lines active:

     auth_basic "Restricted";
     auth_basic_user_file /config/nginx/.htpasswd;

The .htpasswd file is present. I tried to delete it and regenerate the file with the command
docker exec -it swag htpasswd -c /config/nginx/.htpasswd

the file is generated correctly, I restart swag, but nothing changes. How should I proceed? I had to shut down the containers with the unsecured services

post an example proxy conf file
and let us know how exactly you tested to see that they worked without auth