You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api-reference/introduction.mdx
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,21 @@ sidebarTitle: Introduction
4
4
description: The Plane API is organized around REST. Our API has predictable resource-oriented URLs, accepts application/json request bodies, returns JSON responses, and uses standard HTTP response codes, authentication, and verbs.
5
5
---
6
6
7
+
### Base URL
8
+
All requests to the Plane Cloud API must be made to the following base URL:
9
+
```
10
+
https://api.plane.so/
11
+
```
12
+
This URL should be prefixed to all endpoint paths.
13
+
14
+
For example, to retrieve all projects in a workspace:
15
+
```
16
+
GET https://api.plane.so/api/v1/workspaces/:workspace-slug/projects/
17
+
```
18
+
<Note>
19
+
💡 If you're using a self-hosted instance of Plane, your API base URL will differ based on your custom domain and setup.
20
+
</Note>
21
+
7
22
### Authentication
8
23
9
24
Our APIs use a key for authentication. The API key should be included in the header of each request to verify the client's identity and permissions. The key should be passed as the value of the `X-API-Key` header.
This guide provides configuration templates for setting up external reverse proxies with Plane using NGINX, Caddy, or Traefik.
6
+
This page provides configuration for setting up an external reverse proxy with Plane.
7
+
8
+
## Plane environment setup
9
+
10
+
Make sure to update the following environment variables in your plane.env file.
11
+
12
+
1. Assign free ports for Plane to listen on. Update the following variables with two different unsused ports:
13
+
```bash
14
+
LISTEN_HTTP_PORT=
15
+
LISTEN_HTTPS_PORT=
16
+
```
17
+
18
+
2. Update the SITE_ADDRESS variable to `:80`
19
+
```bash
20
+
SITE_ADDRESS=:80
21
+
```
22
+
This is required so that generated links and redirects work correctly behind the proxy:
23
+
24
+
## Proxy setup
25
+
26
+
1. Choose the appropriate [configuration template](#configuration-templates) for your reverse proxy.
27
+
28
+
2. Replace the following placeholders:
29
+
-`<domain>`
30
+
Your Plane application's domain name.
31
+
-`<plane-host-ip>`
32
+
The IP address where Plane is hosted.
33
+
-`<plane-host-port>`
34
+
The port Plane listens on.
35
+
36
+
3. For Traefik, also update `your-email@example.com` with your email.
37
+
38
+
Ensure that your reverse proxy setup follows the template provided, and that the forwarded headers and ports are correctly set to match the environment variable configuration.
39
+
40
+
41
+
## Configuration templates
7
42
8
43
All configurations include:
9
44
- Automatic HTTPS redirection
@@ -14,9 +49,7 @@ All configurations include:
14
49
- Caddy: Handles certificates automatically
15
50
- Traefik: Uses Let’s Encrypt
16
51
17
-
## Configuration templates
18
52
19
-
### NGINX
20
53
<Accordiontitle="NGINX configuration">
21
54
```bash
22
55
server {
@@ -59,7 +92,7 @@ server {
59
92
60
93
</Accordion>
61
94
62
-
### Caddy
95
+
63
96
<Accordion title="Caddy configuration">
64
97
```bash
65
98
<domain> {
@@ -94,7 +127,6 @@ server {
94
127
95
128
</Accordion>
96
129
97
-
### Traefik
98
130
<Accordion title="Traefik configuration">
99
131
```bash
100
132
entryPoints:
@@ -153,16 +185,3 @@ providers:
153
185
```
154
186
</Accordion>
155
187
156
-
## Proxy setup
157
-
158
-
1. Choose the appropriate [configuration template](#configuration-templates) for your reverse proxy.
159
-
160
-
2. Replace the following placeholders:
161
-
- `<domain>`
162
-
Your Plane application's domain name.
163
-
- `<plane-host-ip>`
164
-
The IP address where Plane is hosted.
165
-
- `<plane-host-port>`
166
-
The port Plane listens on.
167
-
168
-
3. For Traefik, also update `your-email@example.com` with your email.
0 commit comments