Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to build a private network disk with Serverless

Shulou Source: shulou.com Published: 2022-05-31 20:36:30 09月22日 Update

How to use Serverless to build a private network disk, in view of this problem, this article introduces the corresponding analysis and answers in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.

What is 01OneManager? OneManager-php is a powerful OneDrive listing program that uses Microsoft Onedrive api to map Onedrive directories to a cloud disk.

There are many similar programs, such as OneIndex, Pyone, OnePoint, and so on. This program is characterized by its support for multiple Onedrive types (both commercial and personal versions) and multiple disk bindings, and supports deployment on Tencent Cloud function SCF.

Demo | https://herooneindex.herokuapp.com/E5

You can quickly deploy, add and manage your OneDrive network disk on Tencent Cloud function SCF in three steps:

02 deployment tutorial

1. Install the command line tool Serverless Framework

Npm install-g serverless

two。 Download the project template code and enter the template directory

Sls init scf-for-onedrive

Cd scf-for-onedrive

You can also view the details of the project through the sls registry scf-for-onedrive directive.

3. Complete the deployment through this command

Sls deploy

After the deployment is successful, you can access the created API gateway URL (shown below on the command line).

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. Get onedrive information and display it with API gateway

Namespace: default

Runtime: Php7

Handler: index.main_handler

MemorySize: 128

LastVersion: $LATEST

Traffic: 1

Triggers:

Apigw:

-http://service-793kanym-1xxxxxxx0.gz.apigw.tencentcs.com/release/

Finally, according to the program interface guidelines, add your OneDrive network disk will be successful!

This is the answer to the question about how to use Serverless to build a private network disk. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.

Tags: Programs commands private Jianyi success information functions more templates directories gateways questions projects Tencent help support solutions powerful easy easy Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Shulou Information Redmi macOS Docker