Coder Social home page Coder Social logo

ly-img / short Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lystv/short

0.0 0.0 0.0 14.84 MB

利用CF的workers和kv存储定制自己的短链服务

Home Page: http://raw.lytv.gq/

Shell 1.17% JavaScript 26.36% Python 20.89% PHP 8.46% CSS 1.81% HTML 40.30% Dockerfile 1.01%

short's Introduction

1.没有账号的先注册一个并登录

点"Workers"(非红圈)

image

2.点“创建服务”创建服务

image

3.“服务名称”可随意 然后点“创建服务”完成

image

4.点第1张图红圈 --- 点“KV”去创建KV空间

image

5.点红圈去创建KV空间

image

6.“命名空间名称”可随意 填写后点“添加”完成空间创建

image

7.回到第一步 然后点已经完成的那个服务名称(参考第3张图) 点设置--变量

image

8.下拉找到"KV命名空间绑定" 然后点“添加绑定”

image

9. 变量名称固定为“LINKS” -- kV命名空间选刚刚创建的那个KV空间名称 --- 点“保存并部署”

image

10.点第7张图中的“快速部署” --- 复制index.js中的内容替换下图的全部内容 ---点“保存并部署”

image

11.点第4张图第“KV” ----找到刚刚创建的那个KV空间名称 --- 点其后面的“查看“”

image

12.”秘钥“填”password“ ”值“填”字符串“(可用字符串工具生成,这里以0000为例) ---点”添加条目“

image

13.点左菜单栏顶上的”网站“ ----- 没有站点的自己去添加(这里已添加好了),点选择的站点(这里是 ewwe.ml)

image

14.点”DNS“

image

15.点”添加记录“

image

16.”名称“可随意(使用一级填'@') "ipv4地址”可随意(需按照 8.8.8.8 格式即可)---点“保存”

image

17.点左边的“Workers路由”

image

18.“路由”填刚才DNS添加的记录(这里是”a“记录 ”ewwe.ml“站点 )为”a.ewwe.ml/*“

image

所有部署完成 最后地址“a.ewwe.ml/0000” 不知0000是什么的 请往上翻看

short's People

Contributors

lystv avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.