posts: 添加关于如何使用Vercel部署onedrive-index项目的教程文档
BIN
src/content/assets/images/onedrive-index-1.png
Normal file
|
After Width: | Height: | Size: 336 KiB |
BIN
src/content/assets/images/onedrive-index-2.png
Normal file
|
After Width: | Height: | Size: 80 KiB |
BIN
src/content/assets/images/onedrive-index-3.png
Normal file
|
After Width: | Height: | Size: 140 KiB |
BIN
src/content/assets/images/onedrive-index-4.png
Normal file
|
After Width: | Height: | Size: 347 KiB |
BIN
src/content/assets/images/onedrive-index-5.png
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
src/content/assets/images/onedrive-index-6.png
Normal file
|
After Width: | Height: | Size: 246 KiB |
BIN
src/content/assets/images/onedrive-index-7.png
Normal file
|
After Width: | Height: | Size: 129 KiB |
BIN
src/content/assets/images/onedrive-index.png
Normal file
|
After Width: | Height: | Size: 54 KiB |
45
src/content/posts/onedrive-index.md
Normal file
@@ -0,0 +1,45 @@
|
||||
---
|
||||
title: 来!让我们用Vercel来分享你的OneDrive!
|
||||
published: 2025-11-14T15:03:46
|
||||
description: 利用onedrive-index这个项目可以将你的OneDrive映射到公网,轻松分发资源!
|
||||
image: ../assets/images/onedrive-index.png
|
||||
tags:
|
||||
- Vercel
|
||||
- OneDrive
|
||||
draft: false
|
||||
lang: ""
|
||||
---
|
||||
# 正式开始
|
||||
你可以根据[前文](/posts/ms-e3/)免费拿E3,得到至高免费5T的OneDrive存储空间,也可以用你个人永久免费的5G空间,都可以!
|
||||
|
||||
前往 [高级 - OneDrive Vercel Index](https://ovi.swo.moe/zh/docs/advanced#%E4%BD%BF%E7%94%A8%E4%BD%A0%E8%87%AA%E5%B7%B1%E7%9A%84-client-id-%E4%B8%8E-secret) 拿到 clientid 和 secret
|
||||
|
||||
前往该页面,点击快速部署 [onedrive-index/README.zh-CN.md at main · iRedScarf/onedrive-index](https://github.com/iRedScarf/onedrive-index/blob/main/README.zh-CN.md#%E9%83%A8%E7%BD%B2%E5%88%B0vercel)
|
||||
|
||||

|
||||
|
||||
填写必须的5个环境变量
|
||||

|
||||
|
||||
其中,USER_PRINCIPAL_NAME为类似 huding@Smartree233.onmicrosoft.com 的电子邮箱,也就是你登陆OneDrive的用户名
|
||||
|
||||
Vercel部署完毕后,会报错连不上Redis,因为我们还没创建和绑定,现在我们开始做
|
||||

|
||||
|
||||
前往 https://vercel.com/integrations/upstash 点击 Install
|
||||

|
||||
|
||||
选择你要绑定的Vercel项目,并且设置Redis实例名称
|
||||

|
||||
|
||||
来到Vercel的环境变量页面,这就是绑定成功了
|
||||

|
||||
|
||||
随便打开一个部署,点击 Redeploy 重新部署,就能成功连接数据库了
|
||||
|
||||
接下来访问你的项目域名,进入OneDrive-Index的引导,需要打开微软的一个链接授权
|
||||
|
||||
授权后会重定向到一个localhost的域名,复制该URI,粘贴回OneDrive-Index即可(仅需一次)
|
||||
|
||||
成功部署!
|
||||

|
||||