nginx-proxy-manager icon indicating copy to clipboard operation
nginx-proxy-manager copied to clipboard

Problem with Access List and API App

Open Jamyz opened this issue 3 years ago • 3 comments

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image? No
  • Have you searched for similar issues (both open and closed)?
    • Yes

Describe the bug In Access Lists

  • Satisfy Any & Pass Auth to Host are ON.
  • Authorization created with an Username and Password
  • Access with allow an IP fix and deny for all

Nginx Proxy Manager Version 2.9.18

Expected behavior When i connect I have the box Authoriztion to enter the user and password. Works fine. But When i try to login (nginxproxymanager or portainer for example) it´s impossible if the ip different from Access

When i try to login in portainer i have this error : **level=info msg="2022/04/11 02:03:01 [DEBUG] [chisel, monitoring] [check_interval_seconds: 10.000000] [message: starting tunnel management process]" INFO 2022/04/11 02:03:01 [INFO] [cmd,main] Starting Portainer version 2.11.1

level=info msg="2022/04/11 02:03:01 [DEBUG] [internal,init] [message: start initialization monitor ]" level=info msg="2022/04/11 02:03:01 [INFO] [http,server] [message: starting HTTPS server on port :9443]" level=info msg="2022/04/11 02:03:01 [INFO] [http,server] [message: starting HTTP server on port :9000]" level=info msg="2022/04/11 03:51:53 http error: A valid authorisation token is missing (err=Unauthorized) (code=401)" level=info msg="2022/04/11 05:34:46 http error: A valid authorisation token is missing (err=Unauthorized) (code=401)"**

With nginxproxymanager : [4/12/2022] [6:18:16 AM] [Express ] › ⚠ warning Existing token contained invalid user data [4/12/2022] [6:18:23 AM] [Express ] › ⚠ warning Existing token contained invalid user data [4/12/2022] [6:18:29 AM] [Express ] › ⚠ warning Existing token contained invalid user data

Maybe is because, portainer, homebridge, nginxproxymanager and other use api. So how use api with portainer for example ?

Operating System Docker on Raspberry Pi 3

Jamyz avatar Apr 11 '22 06:04 Jamyz

Hi , i have the same problem Existing token contained invalid user data

GVA-Guillaume avatar Aug 04 '23 14:08 GVA-Guillaume

you can fix this issue by adding this in .conf that you can found in this path "/data/nginx/proxy_host"

proxy_set_header Authorization $http_authorization;

rahul1996pp avatar Aug 13 '23 21:08 rahul1996pp

Issue is now considered stale. If you want to keep it open, please comment :+1:

github-actions[bot] avatar Feb 19 '24 01:02 github-actions[bot]