飞书云文档备份
用于备份下载所有飞书云文档。文档将被转换成markdown。
重定向URL
复制粘贴到你创建的应用的安全设置-重定向URL中。app_id
和app_secret
,构造url: https://{{your_server}}/tool/feishu-backup/#/backup/{{app_id}}/{{app_secret}}
。在飞书应用后台的安全设置中的重定向中写入这个url。{{your_direct_url}}
。.env
中的VITE_BASEURL
,改成你需要的路径。这跟你的Nginx之类的网页服务器的配置有关。形如https://your.domain/AAA/BBB/CCC/#/...中的/AAA/BBB/CCC
就是base url。如果不需要的话,简单改成/
应该就行了。git clone https://github.com/dicarne/feishu-backup.git pnpm i
import { Secret } from './secret_interface' export default { baseUrl: "http://your.domain/YOUR_URL", baseUrl_noauth: "http://your.domain/YOUR_URL" } as Secret
location /your_base_url/ { alias /web/feishu-backup/; # 你的静态网页路径 index index.html; }
location /your_url { add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS'; add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization'; if ($request_method = 'OPTIONS') { return 204; } proxy_pass https://open.feishu.cn/open-apis; }