开源,自托管CloudApp
项目描述
# regenwolken – 开源CloudApp服务器
[Cloud.app][app] 确实非常方便,文件分享从未如此简单。但我不喜欢看到(个人)数据如截图或代码片段离我而去。Regenwolken是Cloud App API的完整实现,只有一个缺点:您需要编辑您的 /etc/hosts。
#### 开放服务器
我设置了一个向所有人开放的服务器。简单添加 134.255.239.78 my.cl.ly 到您的 /etc/hosts。三天前的项目将在午夜被清理(仅限小型vserver)。祝测试愉快!
## 快速入门
针对OS X的简短说明,请根据您选择的Linux发行版(Debian Squeeze)修改这些命令。
$ brew install mongodb $ mongod –dbpath foo/ &
现在安装regenwolken及其依赖项
$ easy_install regenwolken $ easy_install pygments Pillow markdown # 可选
修改 /etc/hosts,启动regenwolken并注册新账户
$ echo “12.34.56.78 my.cl.ly” | sudo tee -a /etc/hosts $ regenwolken & [… 打开Cloud.app或其他客户端并注册新账户] $ rwctl activate USERNAME
您可以使用配置文件(如 /path/to/rw.cfg)将此行为更改为立即激活新用户,如下所示
$ cat /path/to/rw.cfg PUBLIC_REGISTRATION = True $ export REGENWOLKEN_SETTINGS=/path/to/rw.cfg $ regenwolken
## 如何使用regenwolken
作为替代CloudApp服务器,您必须将它们的DNS my.cl.ly 编辑为指向您自己的IP。这不会干扰CloudApp服务本身,因为它们使用 cl.ly 和 f.c.ly 进行分享。
$ echo “12.34.56.78 my.cl.ly” | sudo tee -a /etc/hosts
注意:您应该在regenwolken.cfg中设置一个 主机名(=您的域名)。这将返回到定制的URL,直接指向您的宿主,这样其他人就不需要修改他们的hosts。
## 设置和配置
请参阅[DEPLOYMENT.md](https://github.com/posativ/regenwolken/blob/master/doc/DEPLOYMENT.md)和[CONFIG.rst](https://github.com/posativ/regenwolken/blob/master/doc/CONFIG.rst)以获取详细信息。
## API实现
regenwolken提供了所有API调用以使Cloud.app工作,并且只缺少[CloudApp的API](http://developer.getcloudapp.com/)的少数调用。有关功能完整列表,请参阅[API.md](https://github.com/posativ/regenwolken/blob/master/doc/API.md)。以下列出了当前由Web界面覆盖的内容。
# -H “Accept: text/html”
/ - GET基本Web界面/items/<short_id> - GET文件或从书签重定向 /items/<short_id>/filename - GET与/items/<short_id>相同 /<short_id> - GET类似于viso的文件视图或从书签重定向/thumb/<short_id> - GET项目缩略图
感谢[cmur2](https://github.com/cmur2)提供功能丰富的[CLI](https://github.com/cmur2/cloudapp-power-cli)(支持HTTPS!)并在构建此服务中的帮助!
## 客户端
如果您正在为CloudApp开发API或客户端,请考虑配置服务URL。这使hosts文件黑客攻击变得不必要,并且作为副作用,您可以对所有连接使用HTTPS(此功能仍在master中)。
### 正在运行
Mac OS X [Cloud.app][app]
[Cloudette](http://cloudetteapp.com/) –免费的CloudApp iPhone客户端,运行无故障
[BlueNube](http://bluenubeapp.com/) –1.99美元的iPad客户端
[Stratus](http://www.getstratusapp.com/) –CloudApp的iOS(iPhone/iPad)客户端;同时将127.0.0.1 ws.pusherapp.com添加到/etc/hosts中。
[cloudapp-power-cli](https://github.com/cmur2/cloudapp-power-cli) –功能丰富的命令行工具
[JCloudApp](https://github.com/cmur2/jcloudapp) –Java(支持HTTPS与regenwolken!)中的跨平台Cloud.app小部件
[gloudapp](https://github.com/cmur2/gloudapp) –基于linux+GTK的客户端
请勿使用官方的cloudapp-cli应用程序,它仍然是beta版本,功能较少,并且不支持其他服务。
### 失败的客户端
Windows的[FluffyApp](http://fluffyapp.com/),无法登录
## 链接
[rixth/raincloud](https://github.com/rixth/raincloud) –一个用node.js编写的(完整?)云实现
[在我的博客中的简短描述](http://blog.posativ.org/2011/regenwolken-hosting-cloudapp-on-your-own-server/)
[app]: http://itunes.apple.com/us/app/cloud/id417602904?mt=12&ls=1