brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: an access list with a password can lock you out of the app behind it

Security
~/tips/tip-nginxproxymanager-authorization-header

cat ~/tips/tip-nginxproxymanager-authorization-header.md

Explains why a password on a proxy host breaks apps that have their own login.

You add a username and password to a proxy host, and now an app that has its own login refuses you. It feels like a bug, but it is two logins fighting over one header.

The NPM FAQ explains it. An access list with basic credentials makes the browser send them in the Authorization header on every request. Many apps use that same header for their own login. The FAQ says almost all apps do not support multiple values in it, so one of the two logins breaks.

There are two fixes, both from the FAQ. Remove one of the two logins, or change the app so it authenticates through a non-standard header. The first is usually the easier one. If the app has real accounts, I would drop the access list on that host and let the app handle it.

Access lists still make sense for apps without any login of their own, a plain dashboard or a status page. For those, the browser’s basic auth prompt is fine.

The symptom is confusing. You may see a login that loops or a 401 from the app, not from NPM. When that happens after adding an access list, check this first, before you start digging through proxy settings.

Further reading: Nginx Proxy Manager: FAQ, On this site: keep the database password out of your NPM compose file with __FILE, On this site: DISABLE_IPV6 fixes the "Address family not supported" error in Nginx Proxy Manager

Going deeper: Guide: fix a 502 Bad Gateway in Nginx Proxy Manager, with a checklist that finds the cause

More Security tips tcpdump -nn -r capture.pcap port 53 mkcert -install Strict-Transport-Security: max-age=0 Referrer-Policy: strict-origin-when-cross-origin wp super-admin list All Security tips (79) All topics

Link