Giter Club home page Giter Club logo

Comments (4)

easychen avatar easychen commented on June 12, 2024

自架版并不是私有版,主要场景是自架提供公共服务。正因此,官方目前没有类似功能的开发计划,欢迎PR。

from pushdeer.

midaug avatar midaug commented on June 12, 2024

需要自架本质上是为了私有,期望推送的消息只经过自己的服务器。 如果在自己的公共服务器上架设又没有任何防护极容易被攻击,例如里面的wechatLogin调用了微信的public api,如果这个接口被攻击下游微信的接口必然受影响,很可能微信会将公共服务器拉黑

另外如果被攻击也没有有效的手段拦截,别人的ip可能是动态的,就只能关闭pushdeer服务

加一重防护即可以满足私有需求又可以一定程度保障安全

from pushdeer.

easychen avatar easychen commented on June 12, 2024

我同意你的看法,除了限制用户注册,甚至还可加上付费接口进行收费。只是我们目前计划表上没有这个功能。这是一个由社区驱动的开源项目,如果你发现无法满足你的需求,完全可以自己或者雇人二次开发。

即使作为普通用户,你也可以在docker外层去做防护,比如ip限制,或者直接把注册接口的URL禁止掉。

from pushdeer.

midaug avatar midaug commented on June 12, 2024

目前用这种方式实现,没次新设备注册需要手动注释location /push/login/ 后面计划可以考虑一下:比如 开启/关闭 login功能,或者生成临时授权注册码

 location  /push/login/   {
     deny all;
 }
location /push/ {
    proxy_set_header X-Forwarded-For    $remote_addr;
    proxy_set_header X-Real-IP          $remote_addr;
    proxy_pass    http://127.0.0.1:8800/;
}

from pushdeer.

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.