diff --git a/apps/telegraph/README.md b/apps/telegraph/README.md new file mode 100644 index 00000000..1c802b2b --- /dev/null +++ b/apps/telegraph/README.md @@ -0,0 +1,41 @@ +⚠️需要网络能够访问telegraph + +# 特点 +图片储存在telegraph + +支持上传大于5MB的图片 + +# 使用方法 +### 服务器 +安装nginx+php +下载源码,将文件上传到网站目录,访问域名即可! + +#### 配置自己的反代域名 +修改nginx配置 +``` +location /file { + proxy_pass https://telegra.ph/file; +} +``` +修改api/api.php文件第6行中的域名即可! + +### docker + +```docker pull baipiaoo/telegraph:latest``` + +```docker run -p 8080:80 -d --restart=always baipiaoo/telegraph``` + +复制功能由```navigator.clipboard```实现,需使用 HTTPS 协议! +###### nginx 反代配置 +``` + location / { + proxy_pass http://localhost:8080; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } +``` +## Star History + +[![Star History Chart](https://api.star-history.com/svg?repos=0-RTT/telegraph&type=Date)](https://star-history.com/#0-RTT/telegraph&Date) \ No newline at end of file diff --git a/apps/telegraph/data.yml b/apps/telegraph/data.yml new file mode 100644 index 00000000..b630132a --- /dev/null +++ b/apps/telegraph/data.yml @@ -0,0 +1,19 @@ +name: telegraph +tags: + - 工具 +title: 基于 telegraph 的图床,图片大于 5MB 自动压缩 +description: 基于 telegraph 的图床,图片大于 5MB 自动压缩 +additionalProperties: + key: telegraph + name: telegraph + tags: + - Tool + shortDescZh: 基于 telegraph 的图床,图片大于 5MB 自动压缩 + shortDescEn: Telegraph-based graph bed with automatic compression for images larger than 5MB + type: tool + crossVersionUpdate: true + limit: 0 + recommend: 0 + website: https://jiasu.in + github: https://github.com/0-RTT/telegraph + document: https://github.com/0-RTT/telegraph diff --git a/apps/telegraph/latest/.env.sample b/apps/telegraph/latest/.env.sample new file mode 100644 index 00000000..0ba548b5 --- /dev/null +++ b/apps/telegraph/latest/.env.sample @@ -0,0 +1,2 @@ +CONTAINER_NAME="telegraph" +PANEL_APP_PORT_HTTP="40224" diff --git a/apps/telegraph/latest/data.yml b/apps/telegraph/latest/data.yml new file mode 100644 index 00000000..5eec6c5b --- /dev/null +++ b/apps/telegraph/latest/data.yml @@ -0,0 +1,10 @@ +additionalProperties: + formFields: + - default: 40224 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number diff --git a/apps/telegraph/latest/docker-compose.yml b/apps/telegraph/latest/docker-compose.yml new file mode 100644 index 00000000..566677b0 --- /dev/null +++ b/apps/telegraph/latest/docker-compose.yml @@ -0,0 +1,16 @@ +version: '3' +services: + telegraph: + image: baipiaoo/telegraph:latest + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + ports: + - "${PANEL_APP_PORT_HTTP}:80" + labels: + createdBy: "Apps" + +networks: + 1panel-network: + external: true diff --git a/apps/telegraph/logo.png b/apps/telegraph/logo.png new file mode 100644 index 00000000..f7c0513f Binary files /dev/null and b/apps/telegraph/logo.png differ