Code Monkey home page Code Monkey logo

Comments (6)

hetianyi avatar hetianyi commented on June 9, 2024

godfs保存管理文件,但是没有访问权限控制机制,需要前端具体的应用系统来做控制。
因为每家的应用系统的权限控制方式均有不同,所以不可能做到这一步,除非根据业务做个性化定制。
有效期可以通过定制来实现(比如为文件创建临时别名并设置有效期),但是为了避免给系统数据库带来不必要的开销,因此不予实现,可考虑在前端系统实现。
另:你所说的系统内打开具体是控制在什么范围内不清楚,但是godfs支持简单的防盗链机制。

from godfs.

Wizzercn avatar Wizzercn commented on June 9, 2024

请问下,防盗链机制具体怎么使用

from godfs.

hetianyi avatar hetianyi commented on June 9, 2024

请参考master分支配置文件storage.conf的allowed_domain

from godfs.

Wizzercn avatar Wizzercn commented on June 9, 2024

能否提供fastdfs那样的token防盗链机制?fastdfs服务可以自己判断token是否有效,而不是单单配个allowed_domain而已,文件的url应该是可以分享出去的。

from godfs.

hetianyi avatar hetianyi commented on June 9, 2024

感谢反馈,下一个版本将提供token机制!

from godfs.

hetianyi avatar hetianyi commented on June 9, 2024

https://github.com/hetianyi/godfs/blob/master/README_zh.md#token%E7%9A%84%E4%BD%BF%E7%94%A8

from godfs.

Related Issues (20)

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.