Nginx Proxy Manager auth_basic

配置

# Authorization
auth_basic            "Authorization required";
auth_basic_user_file  /data/access/1;

proxy_set_header Authorization "";

# Access Rules
deny all;

# Access checks must...
satisfy any;

通过将其添加到配置中来强制使用 ssl

# Force SSL
include conf.d/include/force-ssl.conf;

URL携带用户名和密码

http://username:password@example.com/

by: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/911

留下评论