Giter VIP home page Giter VIP logo

nekobox's Introduction

NekoBox

匿名提问箱 / Anonymous Question Box

Go Report Card Sourcegraph DeepSource Go Report Card

简体中文 | English

Screenshot

Installation

Prerequisite

  • Go (v1.19 or higher)
  • MySQL (v5.7 or higher)
  • Redis (v6.0 or higher)

Build from source

git clone https://github.com/NekoWheel/NekoBox.git

cd NekoBox

go build -o NekoBox

Edit the configuration file

cp conf/app.sample.ini conf/app.ini

Run

./NekoBox web

Architecture

Architecture Architecture

NekoBox uses GitHub Actions for continuous integration and deployment.

When a user visit NekoBox, the request will be routed to Aliyun CDN, the CDN access logs will be collected and pushed to Aliyun simple log service (SLS) in realtime. The log data will be stored in SLS for 180 days for audit purposes.

User's profile, questions and answers will be stored in MySQL database.

User's session, CSRF token and email verification token will be stored in Redis temporarily.

The entire request and response chain will be uploaded to Uptrace for debugging purposes. The data will be stored in Uptrace for 30 days. Administrators can use the TraceID provided by users to query the specified request context.

When a user submits a question, the content of the question will be sent to Qiniu text censoring service for review. If the content is not suitable, the content will then be sent to Aliyun text censoring service for a second review. If the content still does not pass, the question will be rejected. This is because the Qiniu text censoring service is not very accurate, some non-offensive content may also be rejected by the Qiniu's service.

When a user received a new question, an email will be sent to the user's email address by Aliyun mail service (DM).

In the main page, you can check out the changelogs of NekoBox, and you can visit the sponsor page to support NekoBox at the bottom of the page. The changelogs and sponsor list are stored in a Pocketbase service which is deployed separately.

License

MIT License

nekobox's People

Contributors

deepsourcebot avatar lonelyion avatar wuhan005 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nekobox's Issues

使用反向代理,然后出现离谱问题

[Flamego] 2023-04-14 15:40:03: Started POST /user/profile/update for x
[Flamego] 2023-04-14 15:40:03: Completed POST /user/profile/update 400 Bad Request in 6.607624ms

前台显示Bad Request: invalid CSRF token

后续能自定义图床吗

作者您好,看到网站现在把带图提问的功能加上了,使用以后感觉很棒,但是因为用的是cf的r2,实际使用中有时候会很慢。目前我在用源码搭建自己的提问箱,想问下后续作者有新增自定义图床或者oss的相关配置的计划吗?

密码验证

注册的时候都不需要双重验证密码的吗,那我乱输一个不就忘了嘛。。。🤣

关于删除数据的问题

看到兔小巢上的“吐槽反馈”暂时还没回复,想冒昧开个issue请教一下作者大大近期有无加入

  1. 删除(或修改)既有回答
  2. 注销账户

等删除数据的功能的计划?一方面能方便修改一些无意的笔误,另一方面能在以后回溯删除一些可能有变或不再合时宜的回答。

(真的很喜欢这个简单的界面(●'◡'●)感谢开发!顺祝新春快乐~)

box.n3ko.co 无法访问

net::ERR_HTTP_RESPONSE_CODE_FAILURE,我和我的朋友都在使用这一服务(非常好使!),今天访问遇到这个问题,麻烦开发者大大们有空看一下?非常感谢!

邮件发送服务不正常

配置文件如下

[mail]
account = "*****@qq.com"
password = "*****"
port = 465
smtp = "smtp.qq.com"

无论是使用qq邮箱还是自己域名的邮箱都无法登录,报错:

alid address \"=?UTF-8?q?=E7=8B=BC=E7=9A=84=E6=8F=90=E9=97=AE=E7=AE=B1_<******@qq.co?= =?UTF-8?q?m>?=\": mail: unclosed angle-addr"

MySQL

请问这个项目是否用到MySQL

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.