├── Dockerfile ├── LICENSE ├── README.md ├── app.json ├── cloudreve ├── cloudreve.db ├── heroku.yml ├── mycloudreve.ini └── run.sh /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:3.9.5 2 | ADD cloudreve /root/cloudreve/cloudreve 3 | ADD mycloudreve.ini /root/cloudreve/mycloudreve.ini 4 | ADD cloudreve.db /root/cloudreve/cloudreve.db 5 | ADD run.sh /root/cloudreve/run.sh 6 | RUN chmod +x /root/cloudreve/cloudreve 7 | RUN chmod +x /root/cloudreve/run.sh 8 | CMD /root/cloudreve/run.sh -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Yuki Kikuchi 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # cloudreve Heroku 2 | 3 | ## 概述 4 | 5 | 用于在 Heroku 上部署 [cloudreve](https://cloudreve.org/)。 6 | 7 | **部署前请三思。** 8 | 9 | ## 镜像 10 | 11 | 本镜像基于alpine:3.9.5 12 | 13 | cloudreve二进制可执行文件在此镜像下编译生成,可能不适用于其他镜像 14 | 15 | [Deploy](https://dashboard.heroku.com/new?template=https%3A%2F%2Fgithub.com%2Ficodecho%2Fcloudreve-heroku) 16 | 17 | ## 注意 18 | 19 | 本镜像只是个人兴趣制作,个人测试使用,**如他者因此镜像及此镜像相关内容,触犯相关法律法规与本人无关,后果自负。** -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cloudreve", 3 | "description": "Deploy cloudreve on Heroku.", 4 | "keywords": ["cloudreve"], 5 | "env": { 6 | "MyEnv": { 7 | "description": "MyEnv description", 8 | "value": "MyEnv value" 9 | } 10 | }, 11 | "website": "https://blog.evilcode.cf/", 12 | "repository": "https://github.com/icodecho/cloudreve-heroku", 13 | "stack": "container" 14 | } 15 | -------------------------------------------------------------------------------- /cloudreve: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icodecho/cloudreve-heroku/ce2ba89c23e1807c01ddac942a5e46863478ad36/cloudreve -------------------------------------------------------------------------------- /cloudreve.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icodecho/cloudreve-heroku/ce2ba89c23e1807c01ddac942a5e46863478ad36/cloudreve.db -------------------------------------------------------------------------------- /heroku.yml: -------------------------------------------------------------------------------- 1 | build: 2 | docker: 3 | web: Dockerfile 4 | -------------------------------------------------------------------------------- /mycloudreve.ini: -------------------------------------------------------------------------------- 1 | [System] 2 | ; 运行模式 3 | Mode = master 4 | ; 监听端口 5 | Listen = :8080 6 | ; 是否开启 Debug 7 | Debug = false 8 | ; Session 密钥, 一般在首次启动时自动生成 9 | ; 5201314的md5加密密文为723d505516e0c197e42a6be3c0af910e 10 | ; 搭配cloudreve.db 默认关闭注册 管理员为 admin@cloudreve.org / cloudreve@2020 11 | SessionSecret = 723d505516e0c197e42a6be3c0af910e 12 | ; Hash 加盐, 一般在首次启动时自动生成 13 | HashIDSalt = 723d505516e0c197e42a6be3c0af910e -------------------------------------------------------------------------------- /run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cat <<-EOF > /root/cloudreve/mycloudreve.ini 3 | [System] 4 | ; 运行模式 5 | Mode = master 6 | ; 监听端口 7 | Listen = :${PORT} 8 | ; 是否开启 Debug 9 | Debug = false 10 | ; Session 密钥, 一般在首次启动时自动生成 11 | ; 5201314的md5加密密文为723d505516e0c197e42a6be3c0af910e 12 | ; 搭配cloudreve.db 默认关闭注册 管理员为 admin@cloudreve.org / cloudreve@2020 13 | SessionSecret = 723d505516e0c197e42a6be3c0af910e 14 | ; Hash 加盐, 一般在首次启动时自动生成 15 | HashIDSalt = 723d505516e0c197e42a6be3c0af910e 16 | EOF 17 | /root/cloudreve/cloudreve -c /root/cloudreve/mycloudreve.ini --------------------------------------------------------------------------------