nginx-proxy-manager
nginx-proxy-manager copied to clipboard
API Access
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:
- Go to 'https://domain.tld/api/users'
- Find your account's authorisation key from the 'auth' table.
- Run a
GET
request including the authorisation key as bearer token on the URL mentioned on step 1. - 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.
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
Issue is now considered stale. If you want to keep it open, please comment :+1: