[GH-ISSUE #1045] Netbird self-hosted access to api - nginx 405 #1769

Open
opened 2026-08-05 00:43:53 -04:00 by saavagebueno · 0 comments
Owner

Originally created by @hpoznanski on GitHub (Aug 2, 2023).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/1045

When I try to curl to API I get 405 from Nginx. Im trying to use endpoints from https://docs.netbird.io/api but it doesn't work.

Example:


curl -X POST https://domain/api/setup-keys \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Token my_token_generated_on_UI' \
--data-raw '{
  "name": "Default key",
  "type": "reusable",
  "expires_in": 43200,
  "revoked": false,
  "auto_groups": [
    "Default"
  ],
  "usage_limit": 0
}'

<html>
<head><title>405 Not Allowed</title></head>
<body>
<center><h1>405 Not Allowed</h1></center>
<hr><center>nginx</center>
</body>
</html>

Should I add any additional option to docker-compose (I use official) to enable API?

Originally created by @hpoznanski on GitHub (Aug 2, 2023). Original GitHub issue: https://github.com/netbirdio/netbird/issues/1045 When I try to curl to API I get 405 from Nginx. Im trying to use endpoints from https://docs.netbird.io/api but it doesn't work. Example: ``` curl -X POST https://domain/api/setup-keys \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ -H 'Authorization: Token my_token_generated_on_UI' \ --data-raw '{ "name": "Default key", "type": "reusable", "expires_in": 43200, "revoked": false, "auto_groups": [ "Default" ], "usage_limit": 0 }' <html> <head><title>405 Not Allowed</title></head> <body> <center><h1>405 Not Allowed</h1></center> <hr><center>nginx</center> </body> </html> ``` Should I add any additional option to docker-compose (I use official) to enable API?
saavagebueno added the waiting-feedback label 2026-08-05 00:43:53 -04:00
Sign in to join this conversation.
No Label waiting-feedback
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#1769