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

API Access

Open Techout592 opened this issue 3 years ago • 1 comments

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes

Describe the bug

I have been trying to access Nginx Proxy Manager's API, however, I cannot find any documentation regarding it. I have managed to find out the authorisation key from the database.sqlite file, however, I cannot seem to access the endpoints without getting an Internal Server Error returned with the request.

Nginx Proxy Manager Version

Currently running on v2.9.12

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://domain.tld/api/users'
  2. Find your account's authorisation key from the 'auth' table.
  3. Run a GET request including the authorisation key as bearer token on the URL mentioned on step 1.
  4. See error

Expected behavior

Documentation about the API endpoints and how we can access them.

Screenshots

Not Available.

Operating System

Virtual Private Server running on the KVM hypervisor with the Ubuntu 20.04 Operating System.

Additional context

Not Available.

Techout592 avatar Jan 22 '22 13:01 Techout592

Hello with ansible this task works for me

--- Get Access Token ---

  • name: NPM Post | Get Access Token uri: url: 'http://192.168.1.1/api/tokens' method: POST validate_certs: no status_code: 200 body_format: json body: identity: "{{npm_user}}" secret: "{{npm_password}}" headers: Content-Type: application/json register: npm_access_token delegate_to: localhost

all information can be found here. https://github.com/NginxProxyManager/nginx-proxy-manager/tree/develop/backend/routes/api

DenAV avatar Sep 20 '22 15:09 DenAV

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

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