Giter Club home page Giter Club logo

moe-tu's Introduction

聚合床图

PHP from Travis config Packagist

简介

只需上传一次图片

后台程序会分发到各个床图

将获取的图片链接存到数据库

并且取一条存到memcached进行缓存

后续访问直接返回缓存中的图片url

对于有可能出现的图片链接失效

可以加定期任务来去除失效的图片链接、更新缓存

这样图片就不会丢失了 除非下面的床图全挂了

特点

用了百度的色情api检测

可以公用 防止别人上传色情图片

已知问题

因为写的时候没多想

用了php跑的 长时间跑脚本

后来发现不是很稳定 ~

全部床图

配置

Nginx 重写规则

if (!-d $request_filename) {

rewrite ^/(.)/(.)/*$ /index.php?action=$1&args=$2 last;

break;

}

apache 没用过...

如图

moe-tu's People

Stargazers

 avatar WannαFly avatar  avatar

Watchers

James Cloos avatar  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.