Skip to content

Commit 756777c

Browse files
authored
Merge pull request #657 from MODSetter/dev
docs: update README files to include OAuth-based connector setup inst…
2 parents cba6752 + 29dca6e commit 756777c

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,33 @@ docker run -d -p 3000:3000 -p 8000:8000 \
182182
ghcr.io/modsetter/surfsense:latest
183183
```
184184

185+
**With OAuth-based Connectors (Google Calendar, Gmail, Drive, Airtable):**
186+
187+
To use OAuth-based connectors, you need to configure the respective client credentials:
188+
189+
```bash
190+
docker run -d -p 3000:3000 -p 8000:8000 \
191+
-v surfsense-data:/data \
192+
# Google Connectors (Calendar, Gmail, Drive)
193+
-e GOOGLE_OAUTH_CLIENT_ID=your_google_client_id \
194+
-e GOOGLE_OAUTH_CLIENT_SECRET=your_google_client_secret \
195+
-e GOOGLE_CALENDAR_REDIRECT_URI=http://localhost:8000/api/v1/auth/google/calendar/connector/callback \
196+
-e GOOGLE_GMAIL_REDIRECT_URI=http://localhost:8000/api/v1/auth/google/gmail/connector/callback \
197+
-e GOOGLE_DRIVE_REDIRECT_URI=http://localhost:8000/api/v1/auth/google/drive/connector/callback \
198+
# Airtable Connector
199+
-e AIRTABLE_CLIENT_ID=your_airtable_client_id \
200+
-e AIRTABLE_CLIENT_SECRET=your_airtable_client_secret \
201+
-e AIRTABLE_REDIRECT_URI=http://localhost:8000/api/v1/auth/airtable/connector/callback \
202+
--name surfsense \
203+
--restart unless-stopped \
204+
ghcr.io/modsetter/surfsense:latest
205+
```
206+
207+
> [!NOTE]
208+
> - For Google connectors, create OAuth 2.0 credentials in the [Google Cloud Console](https://console.cloud.google.com/apis/credentials)
209+
> - For Airtable connector, create an OAuth integration in the [Airtable Developer Hub](https://airtable.com/create/oauth)
210+
> - If deploying behind a reverse proxy with HTTPS, add `-e BACKEND_URL=https://api.yourdomain.com` and update the redirect URIs accordingly
211+
185212
After starting, access SurfSense at:
186213
- **Frontend**: [http://localhost:3000](http://localhost:3000)
187214
- **Backend API**: [http://localhost:8000](http://localhost:8000)

README.zh-CN.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,33 @@ docker run -d -p 3000:3000 -p 8000:8000 \
189189
ghcr.io/modsetter/surfsense:latest
190190
```
191191

192+
**使用 OAuth 连接器(Google 日历、Gmail、云端硬盘、Airtable):**
193+
194+
要使用基于 OAuth 的连接器,您需要配置相应的客户端凭据:
195+
196+
```bash
197+
docker run -d -p 3000:3000 -p 8000:8000 \
198+
-v surfsense-data:/data \
199+
# Google 连接器(日历、Gmail、云端硬盘)
200+
-e GOOGLE_OAUTH_CLIENT_ID=your_google_client_id \
201+
-e GOOGLE_OAUTH_CLIENT_SECRET=your_google_client_secret \
202+
-e GOOGLE_CALENDAR_REDIRECT_URI=http://localhost:8000/api/v1/auth/google/calendar/connector/callback \
203+
-e GOOGLE_GMAIL_REDIRECT_URI=http://localhost:8000/api/v1/auth/google/gmail/connector/callback \
204+
-e GOOGLE_DRIVE_REDIRECT_URI=http://localhost:8000/api/v1/auth/google/drive/connector/callback \
205+
# Airtable 连接器
206+
-e AIRTABLE_CLIENT_ID=your_airtable_client_id \
207+
-e AIRTABLE_CLIENT_SECRET=your_airtable_client_secret \
208+
-e AIRTABLE_REDIRECT_URI=http://localhost:8000/api/v1/auth/airtable/connector/callback \
209+
--name surfsense \
210+
--restart unless-stopped \
211+
ghcr.io/modsetter/surfsense:latest
212+
```
213+
214+
> [!NOTE]
215+
> - 对于 Google 连接器,请在 [Google Cloud Console](https://console.cloud.google.com/apis/credentials) 中创建 OAuth 2.0 凭据
216+
> - 对于 Airtable 连接器,请在 [Airtable 开发者中心](https://airtable.com/create/oauth) 中创建 OAuth 集成
217+
> - 如果部署在带有 HTTPS 的反向代理后面,请添加 `-e BACKEND_URL=https://api.yourdomain.com` 并相应地更新重定向 URI
218+
192219
启动后,访问 SurfSense:
193220
- **前端**: [http://localhost:3000](http://localhost:3000)
194221
- **后端 API**: [http://localhost:8000](http://localhost:8000)

0 commit comments

Comments
 (0)