• 网站所有加密内容密码一律为 | All content password is:iyyxz.com;别问为什么,问就是为了活着
  • 现已回国安心恢复身体,感谢所有在闭站期间仍然支持我的人,从零开始,继续努力
  • 订阅小站 TG频道获取更多小福利
  • 欢迎访问小站,如果您觉得本站还不错,请Ctrl+D 收藏本站
  • 请不要催更视频或文章;网站+所有视频制作都是我一人再弄,所以慢;你们多多留言,我可能就会破天荒更新了
  • 今后任何以虚假邮箱的留言评论将一律不通过,你的邮箱不会被公开,请放心留言交流
  • 网站今后如果无法访问,请自行使用代理访问

Use Oneindex to Build a 5T Storage Drive Index for FREE | 利用Oneindex免费搭建5T空间网盘

Tech CrazyJoe 1个月前 (04-19) 612次浏览 4个评论
本文最后更新于2020年4月24日,已超过 38天没有更新,如果文章内容或资源失效,请留言反馈,谢谢!

Use Oneindex to Build a 5T Storage Drive Index for FREE | 利用Oneindex免费搭建5T空间网盘

Before We Start

In order to follow this guide, you will need three things:

  1. KubeSail Account
  2. Onedrive Account
  3. Oneindex

The first two accounts are free to create and Oneindex is an opensource program, so upon finish this guide, you can have 5T storage drive index totally for FREE.

Get A 5T Onedrive Account

If you are an Office365 subscriber or you have a business or edu account with Onedrive. You can skip this section, this section is only for people who only have free Onedrive account which has 5G storage.


The normal free Onedrive account only has 5G storage which not that useful for this case. So, in order to have a 5T Onedrive account, you can obtain one using the following methods:

Open any web address above you will have a random temp email address which can be used to register a Microsoft account that has 5T Onedrive storage (Remember to log in to your Onedrive once before you use Oneindex). You can also set your own desired email address prefix by clicking the upper right corner.

Register your Microsoft account using the link below:

Microsoft will need to verify your email during the registration progress, just wait on your temp email page and input the code once you get the email from Microsoft.

Disclaimer: The above web pages and methods all collected from the internet, I bear no responsibility for any problems, losses, or legal issues caused by using it.

Deploy the Oneindex

First, let’s login to the KubeSail and click New Deployments–Edit YAML, copy and paste the code below, then click save and apply

Use Oneindex to Build a 5T Storage Drive Index for FREE | 利用Oneindex免费搭建5T空间网盘

---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: oneindex
spec:
  selector:
    matchLabels:
      app: oneindex
  replicas: 1
  template:
    metadata:
      labels:
        app: oneindex
    spec:
      containers:
        - name: oneindex
          image: setzero/oneindex
          imagePullPolicy: Always
          ports:
            - name: listen-port
              containerPort: 80
          resources:
            requests:
              cpu: 10m
              memory: 128Mi
            limits:
              cpu: 250m
              memory: 256Mi
          environment:
          - REFRESH_TOKEN=0 * * * *
          - REFRESH_CACHE=*/10 * * * *
          # - DISABLE_CRON=true
          # - SSH_PASSWORD=root
          # - TZ=Asia/Shanghai
          restart: always
          volumes:
          - ./config:/var/www/html/config
          - ./cache:/var/www/html/cache

Note: You can change the config if you want, this code is just a DEMO which I used.

Once deployed, go back to your KubeSail dashboard and choose Domains on the left side then click add domain. Add your desired domain which will be used to access your Oneindex web page. Verify it by adding TXT record to your DNS provider.

Once verified, head back to the KubeSail dashboard and choose Deployments. Here you can see the Oneindex demo we just deployed. Click on it then choose port, expose the port to our domain just verified.

Config Oneindex

Open the domain address we bind to our KubeSail deployment. Here, you can just follow the official Oneindex config guide below:

Use Oneindex to Build a 5T Storage Drive Index for FREE | 利用Oneindex免费搭建5T空间网盘

After installed, you can again head to the domain address and see the results. If you follow every step correctly, you should see your Onedrive file Indexed.

Video Tutorial

Youtube

Bilibili


中文教程由此开始

开始之前:

开始之前,请确保已准备好以下三样东西:

  1. KubeSail 账户
  2. Onedrive 账户
  3. Oneindex 程序

前面两个自行去官网免费创建,最后一个也是在Github开源的程序。所以在完成这个教程之后,你就可以完全零成本创建一个5T空间的网盘索引。

获取一个5T Onedrive账户

如果你是Office365订阅用户或者你有Onedrive商用版或教育版账户,你可以跳过这一节。这一节仅仅是给那些目前只有免费5G空间账户的人准备的。


正常的Onedrive免费账户只有5G免费空间,这对于我们的使用场景没有太大用处。所以,为了获取一个5T空间的Onedrive账户,你可以使用以下任意方法:

打开以上任意网址,你会得到一个随机的email邮箱,这个邮箱可以用来注册微软账户并且获取5T Onedrive空间(注册完成后记得登录你的OneDrive一次才能正常使用Oneindex程序)。你可以通过点击网址右上角的按钮自定义邮箱前缀。

通过以下两个任意链接注册微软账户:

在注册过程中,微软会要求验证你的邮箱地址,在临时邮箱页面等待邮件即可。

免责声明:以上网址和方法均搜集于互联网,我对使用其可能带来的问题、损失及任何法律问题不负任何责任。

部署Oneindex

首选我们前往KubeSail进行登录,登录完成后我们点击New Deployments,选择Edit YAML,复制并粘贴以下代码,点击点击保存并应用

Use Oneindex to Build a 5T Storage Drive Index for FREE | 利用Oneindex免费搭建5T空间网盘

---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: oneindex
spec:
  selector:
    matchLabels:
      app: oneindex
  replicas: 1
  template:
    metadata:
      labels:
        app: oneindex
    spec:
      containers:
        - name: oneindex
          image: setzero/oneindex
          imagePullPolicy: Always
          ports:
            - name: listen-port
              containerPort: 80
          resources:
            requests:
              cpu: 10m
              memory: 128Mi
            limits:
              cpu: 250m
              memory: 256Mi
          environment:
          - REFRESH_TOKEN=0 * * * *
          - REFRESH_CACHE=*/10 * * * *
          # - DISABLE_CRON=true
          # - SSH_PASSWORD=root
          # - TZ=Asia/Shanghai
          restart: always
          volumes:
          - ./config:/var/www/html/config
          - ./cache:/var/www/html/cache

注意:你可以自行更改相应设置去符合你自己的需求,以上代码只是我自己测试时使用的代码。

部署完成后,前往你的KubeSail后台并选择左边的域名,之后选择添加域名。添加你想用于访问Oneindex页面的域名,并且在你的DNS服务商处添加TXT记录验证域名所有权。

当验证完成后,回到KubeSail后台并且选择部署。这里你可以看见我们帮帮部署好的Oneindex镜像。点击并且选择端口,将端口绑定到我们刚刚验证的域名上。

配置Oneindex

打开我们绑定好的域名访问我们的Oneindex。至此,我们就可以跟从以下官方的GIF配置教程进行配置了。

Use Oneindex to Build a 5T Storage Drive Index for FREE | 利用Oneindex免费搭建5T空间网盘

当配置完成后,重新再次访问我们绑定好的域名。如果你所有步骤都没有做错的话,你就应该可以看到我们部署成功的5T Onedrive网盘的索引了。

视频教程

Youtube

Bilibili

0 0 vote
Article Rating

爱英语小站 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:Use Oneindex to Build a 5T Storage Drive Index for FREE | 利用Oneindex免费搭建5T空间网盘
喜欢 (5)
[[email protected]]
分享 (0)
关于作者:
Is life always this hard, or is it just when you're a kid?——Mathilda:Léon: The Professional
Subscribe
Notify of
4 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
tabris trees

总是安装失败有解决办法吗?

666

部署完的页面是空白的

4
0
Would love your thoughts, please comment.x
()
x