#rocket #image #gitee #repo #refresh

rocket-gitee-pictures

rocket use gitee for images repo

2 releases

0.0.2 Aug 16, 2021
0.0.1 Aug 5, 2021

#15 in #refresh

MIT/Apache

20KB
173 lines

rocket 中显示gitee图片

测试(windows下)

set redis_host=redis ip

set redis_port=redis端口

set redis_password=Redis密码

set gitee_token=gitee私人token

set gitee_owner=gitee 账号

set gitee_repo=gitee仓库名

set gitee_branch=仓库分支名(master...)

set gitee_refresh_interval=刷新频率(毫秒整数)

运行

cargo run --example example1

访问 http://127.0.0.1/images/gitee/图片在仓库里的路径

Dependencies

~29–62MB
~1M SLoC