Code Monkey home page Code Monkey logo

panindex's People

Contributors

goreleaserbot avatar jerryyang-git avatar kasuganosoras avatar libsgh avatar wshon 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  avatar  avatar  avatar  avatar

panindex's Issues

添加简单的referer防盗链

好棒!感觉可以有个简单的referer防盗链,是否允许空referer以及referer白名单这样的,在向天翼云请求前就可以拦下来,不然怕后面用的人多了,被盗链是其一,还有可能被天翼ban?

Originally posted by @YohoYang in #7 (comment)

刷新缓存失败

image
无法刷新缓存,手动刷新也无法解决 请问这种情况该怎么办,谢谢

近期程序开发计划讨论

  • 添加一些api接口,如 分享链接直链解析(下个版本移除,迁移到私人项目中)
  • 后台管理:增加详细的配置,例如缓存定时任务,手动同步,上传文件(优先级低)
  • 图床:天翼云网盘的空间不大,感觉用来做图床不太合适。
  • 主题已有classic, bootstrap(by kasuganosoras), materialdesign (by kasuganosoras),功能比较简单,预览只支持视频、图片和office。高级主题(优先级中)
  • 添加对teambition网盘的支持、本地模式(优先级高)

大家有好的建议也可以参加讨论,目前PanIndex的定位是简洁,实用,高效。

一段时间后目录缓存停止刷新

似乎过一段时间设置的定时任务就不会刷新了
本来设置的30分钟一次
结果几个小时后都没有刷新目录
并且在手动改刷新时间并重启尝试刷新后出现了目录重复的情况(同一个目录在列表中显示多个)

其他:
新版本的手动API似乎没用了(只试了目录刷新没反应)
没有找到MYSQL连接的设置

配置:
teambition (网盘)
源码部署(2.0)
环境debian 10 64x

没有找到本地问题(

heroku部署出现Application error

不填写配置文件不会出现Application error,但是没有密码进入系统配置界面

配置文件填写如下
{
"port": 8080,
"mode": "cloud189",
"user": "xxx",
"password": "xxx",
"root_id": "-11",
"heroku_app_url":"https://xxx.herokuapp.com",
"theme": "classic",
"cron_exps": {
"refresh_cookie": "0 0 8 1/1 * ?",
"update_folder_cache": "0 0 0/1 * * ?",
"heroku_keep_alive": "0 0/5 * * * ?"
}
}

恳请支持自定义HTML&css等

首先程序很棒,我很喜欢!

  • 因为不会go,所以我无法自定义HTML以及CSS,主程序是一个二进制文件
  • 下图HTML在PC浏览器底部的_Powered by_显得过高,手机界面同样如此;影响整体美观;
  • 我想用大陆备号域名这样可增加访问流畅性,因为主程序我不知如何更改
  • 期待出一个可自定义的版本,谢谢!

image
image
我自己的测试demo

出现同名文件,无法下载

如图,在反复删除、清空回收站又上传回去(为了测试自动化脚本)后出现了这样的情况:
img
此时重名的两个文件无法下载,点击下载链接会进入相同的页面

大佬~

有没有时间交流一下~~

请问各个目录的root_id怎么看

因为不想直接把根目录下所有文件暴露在公网上,只想暴露一个子文件夹该怎么找root_id,另外加上搜索功能还有单文件或文件夹分享链接就更好了,感谢作者

求助安装方法

能否给个说明。告知下安装方法。研究半天没搞定。。。
愿意红包酬谢。

Docker启动报错

启动命令:

docker run -itd --name PanIndex -d -p 1280:8080 -e CLOUD_USER="账号" -e CLOUD_PASSWORD="密码" -e ROOT_ID="不看" -e API_TOKEN="Kl3JNCN5vi3l2mtN" -e THEME="materialdesign" iicm/pan-index
运行结果:
20210124085750

能否考虑实现前后端分离

#15 所言,能否考虑前后端分离,或者前端配置文件独立化,方便自定义前端需求,而不是改代码后再进行自编译等复杂操作。

Docker 版本无法初始化

部署完毕后,初次登陆显示以下界面(应该是让我设置密码)。但无论输入什么都提示密码错误

把数据库搞出来看了一下,也没有用户信息

部署到heroku上,报错

{ "port": 8080, "user": "183xxxx7765", "password": "xxxx", "root_id": "-11", "pwd_dir_id": [ { "id": "51496311321353335", "pwd": "1234" } ], "hide_file_id": "", "heroku_app_url":"https://pan-index.herokuapp.com" }
user password都填写正确,app-url也无误,但还是打不开
2020-11-23T08:54:42.665652+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch 2020-11-23T08:54:42.684998+00:00 heroku[web.1]: Stopping process with SIGKILL 2020-11-23T08:54:42.771712+00:00 heroku[web.1]: Process exited with status 137 2020-11-23T08:54:42.806970+00:00 heroku[web.1]: State changed from starting to crashed

设置密码方面

您好,打扰一下
image
在设置密码文件夹时ID指的是teambition链接那一串后缀吗?还是指的别的?试了好几次没有成功
比如我设的60cb6f9368cfa3d8a35c40c88d0da65a10165e5a:123 您看是否正确,哪里出了问题?
感谢您在百忙中回复我,谢谢

天翼云排序问题

看了 #17 ,我测试还是有问题。
遇到的问题:
PanIndex文件排序规则为修改时间排序,天翼云盘设置排序为根据文件名排序。
PanIndex无法同步天翼云盘文件排序设置。

账号已被限速,建议各位不要白嫖过度

用来做软件分发下载,月流量预估达到 3TB 左右,现在账号已被限速到 128KB/s,无论网页还是客户端都是,建议各位不要白嫖过度。

不说了,搬数据去了(狗头

疑似内存泄漏

image

突然占用内存十几个 G。

  • 版本:2.0.0 最新版,从 Release 下载的
  • 系统:CentOS 7 64bit

日志报错如下(127.0.0.1 是因为从 Nginx 反代的)

2021/06/06 02:06:49 http: panic serving 127.0.0.1:14273: runtime error: invalid memory address or nil pointer dereference
goroutine 63000 [running]:
net/http.(*conn).serve.func1(0xc000a96640)
        /usr/local/go/src/net/http/server.go:1824 +0x153
panic(0xc2a900, 0x13c9330)
        /usr/local/go/src/runtime/panic.go:971 +0x499
PanIndex/Util.GetDownlaodUrl(0xc0005d2120, 0x24, 0xc001788070, 0x68, 0x10, 0xbfa5a0)
        /github/workspace/Util/Cloud189.go:137 +0x27d
PanIndex/service.GetDownlaodUrl(0xc0005d2120, 0x24, 0xc0005b4258, 0x15, 0xc0005b3c40, 0x8, 0xc0005b3c60, 0xb, 0xc0005b3c90, 0xe, ...)
        /github/workspace/service/service.go:181 +0x285
main.index(0xc000cf20f0)
        /github/workspace/main.go:224 +0x958
main.main.func1(0xc000cf20f0)
        /github/workspace/main.go:134 +0x8ec
github.com/gin-gonic/gin.(*Context).Next(...)
        /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:161
github.com/gin-gonic/gin.LoggerWithConfig.func1(0xc000cf20f0)
        /go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:241 +0xf4
github.com/gin-gonic/gin.(*Context).Next(...)
        /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:161
github.com/gin-gonic/gin.serveError(0xc000cf20f0, 0x194, 0x14014b0, 0x12, 0x12)
        /go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:445 +0x49
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc0003d8500, 0xc000cf20f0)
        /go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:438 +0x4fc
github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc0003d8500, 0xe12a28, 0xc000980380, 0xc000132800)
        /go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:367 +0x14d
net/http.serverHandler.ServeHTTP(0xc0004d8000, 0xe12a28, 0xc000980380, 0xc000132800)
        /usr/local/go/src/net/http/server.go:2887 +0xa3
net/http.(*conn).serve(0xc000a96640, 0xe14a20, 0xc00048d0c0)
        /usr/local/go/src/net/http/server.go:1952 +0x8cd
created by net/http.(*Server).Serve
        /usr/local/go/src/net/http/server.go:3013 +0x39b

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.