Build a Personal OneDrive Cloud Storage with Serverless in Three Simple Steps
Learn how to turn OneDrive into a personal cloud drive without speed limits by deploying the OneManager-php project on Tencent Cloud's Serverless SCF using the Serverless Framework, following a concise three‑step tutorial that includes installation, template setup, and deployment commands.
What is OneManager-php?
OneManager-php is an open‑source PHP application that uses the Microsoft OneDrive API to expose a OneDrive directory as a cloud‑drive interface. It supports personal and business OneDrive accounts, multiple drive bindings, and can be deployed on Tencent Cloud Function (SCF) as a serverless service.
Prerequisites
Tencent Cloud account with SCF enabled.
Node.js installed.
Serverless Framework installed globally.
Three‑step deployment
Install Serverless Framework npm install -g serverless Initialize the project template
sls init scf-for-onedrive
cd scf-for-onedriveYou can view template details with sls registry scf-for-onedrive .
Deploy the application sls deploy After deployment the CLI prints information such as the API Gateway URL, runtime (Php7), handler, memory size, and trigger configuration.
serverless ⚡ framework
Action: "deploy" - Stage: "dev" - App: "scf-for-onedrive" - Instance: "ap-guangzhou_default_SCFonedrive"
functionName: SCFonedrive
description: This application is a list of your onedrive. 获取 onedrive 信息并结合 API 网关展示
namespace: default
runtime: Php7
handler: index.main_handler
memorySize: 128
lastVersion: $LATEST
traffic: 1
triggers:
apigw:
- http://service-xxxxxx.gz.apigw.tencentcs.com/release/Accessing the OneDrive drive
Open the generated API Gateway URL in a browser, follow the on‑screen prompts to authorize your OneDrive account, and the service will present a personal cloud drive without bandwidth throttling.
Repository
Source code: https://github.com/qkqpttgf/OneManager-php
Tencent Cloud Middleware
Official account of Tencent Cloud Middleware. Focuses on microservices, messaging middleware and other cloud‑native technology trends, publishing product updates, case studies, and technical insights. Regularly hosts tech salons to share effective solutions.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
