当前位置:网站首页>Onemanager and cloudflare workers deployment and installation - binding domain names and using cloudflare CDN acceleration
Onemanager and cloudflare workers deployment and installation - binding domain names and using cloudflare CDN acceleration
2022-07-24 19:00:00 【User 9022575】
Before we shared OneManager Installation and use tutorial of , actually OneManager You can talk to CloudFlare Workers Integrate and bind your own domain name to access .CloudFlare Workers And OneManager There are two ways to combine : One is to make use of CloudFlare Workers Realization OneManager Custom domain access , Apply to Heroku Spatial architecture OneManager.
The other is to use directly CloudFlare Workers install OneManager And realize custom domain name access , The advantage of this is to completely eliminate the cost of space , In the case of a small number of visits CloudFlare Workers Enough for your own use . Of course ,CloudFlare Workers Direct architecture OneManager Only mount OneDrive, Alibaba cloud disks are not supported .
There are more network disk storage architecture methods :
- Support WebDAV Domestic and foreign network disk sorting summary - Major network disks WebDAV Server address and connection method
- Comparison of ten foreign excellent online disk cloud storage applications - Free storage , Single file , Automatically synchronize backup and online documents
- Cloudreve Online disk system offline download configuration -Aria2 How to use the enhanced version of one click installation management script
One 、Heroku+OneManager+CloudFlare
demonstration :
- Heroku Spatial architecture :https://wzfoumm.herokuapp.com/
- CloudFlare Workers The generation of :https://wzmm.wzfou.workers.dev/
- Custom domain name :https://wzpan.wzfou.net/
1.1 CloudFlare Workers
If you are already in Heroku Architecture OneManager, But I think Heroku The secondary domain name provided doesn't like , Or is it Heroku The space access speed of is slow , You can try CloudFlare Workers Bind the domain name and use CloudFlare CDN Speed up .
Follow the above method , stay Heroku Installed on OneManager, You will get a website like this :wzfoumm.herokuapp.com, because Heroku Free space opens slowly , We usually choose CloudFlare Speed up . stay CloudFlare Workers Create an application in , Add the following code :
addEventListener(
"fetch",event => {
let url=new URL(event.request.url);
url.hostname="wzfoumm.herokuapp.com";
let request=new Request(url,event.request);
event. respondWith(
fetch(request)
)
}
)
Remember to modify your secondary domain name in the above code .
Now open your CloudFlare Workers The secondary domain name is similar :wzmm.wzfou.workers.dev.
1.2 Bind your own domain name
Enter into CloudFlare Domain name setting of , Click on Worker.
Then click Add route ,Worker There specify what you just created CloudFlare Workers application , The rules are as follows :
As shown in the figure below, we have successfully given ourselves CloudFlare Workers Bound your own domain name .
do DNS Domain name resolution . If you use it CloudFlare Partner This kind of customization IP service , Directly to your CloudFlare The third party DNS The domain name is set up in the resolution service CNAME Record , The record value is CloudFlare Workers Secondary domain name of .
Last , You will get CloudFlare Partner Generated CNAME perhaps A Record value , Now you can go to your domain name DNS Records are added to the parsing service .
Open your custom domain name and you can see that the access is successful :https://wzpan.wzfou.net/. About CloudFlare The third party DNS Parsing service tutorial reference :CloudFlare free CDN Accelerate custom nodes -CloudFlare Optional IP To speed up the CDN Speed .
Two 、OneManager+CloudFlare Workers Direct installation
project :
- author :https://github.com/qkqpttgf/OneManager-cfworkerskv
- spare :https://github.com/freehao123/OneManager-cfworkerskv
- demonstration :https://cfwzp.wzfou.workers.dev/
- Binding domain name demo :https://cfwzp.wzfou.net/
Above we use CloudFlare Workers Anti substitution of , Build on Heroku In space OneManager Successfully bound your domain name and enabled CloudFlare CDN Speed up . in fact OneManager It can also be installed directly on CloudFlare Workers On .
2.1 Workers Direct installation OneManager
First, enter KV, Add namespace , Name casually in English .
Into the workers, newly build , Paste the code , preservation . Here's the picture :
stay workers Setting up ,KV Namespace binding .
Fill in the variable name OMKV, Drop down on the right to select the one you just created CloudFlare Workers. Here's the picture :
Now you can open your CloudFlare Workers Secondary domain name , Start installation OneManager 了 .
You can set your OneManager name .
OneManager You can add OneDrive Network disk .
See the picture below :
2.2 CloudFlare Workers Bind domain name
Enter your domain name Workers Click Add route , As shown in the following figure :
And then to your CloudFlare Partner Set it there DNS Record , The record value is CloudFlare Workers Secondary domain name of .
A new CNAME After recording the value , To your domain name DNS Set it there CNAME Just record it .
Be careful : The above operation is suitable for not using CloudFlare Official DNS Resolution service , That is, it has not been modified NS Server situation . otherwise , Please go straight ahead. CloudFlare Official website modification DNS Just analyze .
Watch the video below :
3、 ... and 、 summary
OneManager+CloudFlare Workers Direct installation is omitted Heroku Space , But such an architecture is only the main function available , You can add disks , You can refresh the cache . Unavailable are : Encrypted Directory 、 Manage operations 、 Upload, etc , Want the full version of OneManager It is recommended to install on the free space and then cooperate CloudFlare CDN Speed up .
The article comes from : Excavation station no https://wzfou.com/onemanager-workers/, copyright . In addition to indicating the source of this article , They are all original articles of the author , Free to quote , But please indicate the source .
边栏推荐
猜你喜欢

Network security port 80 - PHP CGI parameter injection Execution Vulnerability

为什么梯度是函数变化最快的方向

OPENGL学习(二)OPENGL渲染管线

Cryptography knowledge - Introduction to encryption -1

Summer Niuke multi school 1:i chiitoitsu (expectation DP, inverse yuan)

FPGA 20个例程篇:9.DDR3内存颗粒初始化写入并通过RS232读取(上)

04-分布式资源管理系统YARN

Common problems of multithreading and concurrent programming (to be continued)

Web

Go小白实现一个简易的go mock server
随机推荐
Principle and application of database
Ionic4 learning notes 13 - Classification List of an East Project
狂神redis笔记11
Tcl/tk file operation
理解corners_align,两种看待像素的视角
Add column by column selection for JTable
Attack and defense world novice zone PWN
2022 Summer Games of Hangzhou electric power multiple schools 1012aalice and Bob (game theory)
Vsftpd2.3.4-端口渗透 6200 irc_3281_backdoor
The difference between static method and instance method
MySQL -- implicit conversion of data type
Those gods on Zhihu reply
National vocational college skills competition network security competition -- detailed explanation of Apache security configuration
Chapter 4 compound type
Pam4 popular science
Converter
Cadence OrCAD capture tcl/tk script example
Valentine's Day gift ----- use her photos and our chat records to generate word clouds~
JVM方法调用
引发0xC0000005内存违例几种可能原因分析