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:
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
## Version 2022/09/08
# make sure that your dns has a cname set for calibre-web
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name calibre-web.* books.*;
include /config/nginx/ssl.conf;
client_max_body_size 0;
location / {
auth_basic "Restricted";
auth_basic_user_file /config/nginx/.htpasswd;
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app calibre-web;
set $upstream_port 8083;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
proxy_set_header X-Scheme $scheme;
}
location /opds/ {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app calibre-web;
set $upstream_port 8083;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
proxy_set_header X-Scheme $scheme;
}
}