Jirafeau –以简单的方式共享文件| Freedif

Jirafeau –以简单的方式共享文件| Freedif

Jirafeau –以简单的方式共享文件

最常用的在线服务之一是使您可以上传大文件并与他人共享的服务。可能存在服务,例如wesendit等专用服务或具有更大功能的集合(如Dropbox),例如,允许您跨设备同步文件。

 

他们每个人都有类似的替代品,一些非常先进和强大的像Pydio, Owncloud,或Seafile和一些与像独特的功能OnionShare通过TOR去,ShareFest这是一个基于web的P2P共享服务或颓丧,的lighest一个和最简单的一种。

但是许多人还记得流行的文件共享Web应用程序Jyraphe,它非常简单,具有足够好的功能。但是,这个项目多年没有更新,这就是Jirafeau进入的地方。

JirafeauJyraphe的一个分支,具有许多新功能和改进,同时仍然采用KISS方式制作(保持简单,愚蠢)。

Jirafeau易于安装且没有数据库,它允许您上传大文件(谢谢HTML5),并为您提供唯一的链接。Jirafeau具有进度统计信息(速度,百分比和剩余的上载时间),密码保护(上传或下载),时间限制,读取和文件重复数据删除后的自毁功能,是共享文件的强大而简单的服务。

使用Jirafeau,您还可以在浏览器中预览内容,缩短URL甚至加密数据。

很棒的服务,您可以使用并尝试jirafeau.net或按照以下教程将其安装在服务器上。(假设您使用的是Ubuntu / Debian发行版)

 

安装

安装非常简单。这是您需要做的:

1)安装Git

如果您没有安装git,只需以root身份运行(或使用sudo):

apt-get install git-core
2)克隆他们的Git存储库

仍然是根目录,运行:

cd /var/www
git clone https://gitlab.com/mojo42/Jirafeau.git

 

3)将Jirafeau文件夹的所有权更改为您的Apache用户(www-data)

为避免权限问题,请运行:

chown -R www-data:www-data /var/www/Jirafeau

 

4)创建一个专用的虚拟主机

要使您的URL像file.domain.tld这样“漂亮”,建议您设置一个专用的虚拟主机。您也可以同时强制HTTPS并限制对Jirafeau创建的var文件夹的访问,以确保除通过Jirafeau之外没有人可以访问。

这是您可以重复使用的。

为此,您将需要:

1)在DNS服务器/注册商中使用诸如file.domain.tld之类的内容将A重定向到您的IP

2)准备好SSL证书。如果没有,您可以阅读本教程(可选的)

3)创建虚拟主机,如下所示:

在/ etc / apache2 / sites-enabled /中,在根目录中创建一个名为ninja的文件(或重用您的文件)。

nano /etc/apache2/sites-enabled/jirafeau

and paste the following content:

<VirtualHost *:80>
        ServerAdmin webmaster@domain.tld
        ServerName file.domain.tld
        Redirect / https://file.domain.tld
</VirtualHost>

<IfModule mod_ssl.c>
<VirtualHost *:443>
        SSLEngine on
        SSLCertificateFile /etc/ssl/certs/myblog.pem
        SSLCertificateKeyFile /etc/ssl/private/myblog.key

        ServerAdmin webmaster@domain.tld
        ServerName file.domain.tld

        DocumentRoot /var/www/Jirafeau

        <Directory /var/www/Jirafeau>
        AllowOverride All
        </Directory>

        <Directory /var/www/Jirafeau/var-xxxxxxxxx" >
            Order Deny,Allow
            Deny from all
        </Directory>

</VirtualHost>
</IfModule>

Adapt the content (Servername, webmaster email, SSL certificate, directory,…). If you don’t want to use SSL, you will need to tweak a bit this virtualhost.

Also make sure to replace the var folder by the correct one.

When done, save the file (CTRL+X then Yes) and reload apache: (In root)

/etc/init.d/apache2 reload

 

5) Launch the web installer

Simply go to http://file.domain.tld to access the web installer.

You will need to select:

– Language

– Admin Password

– Base Address (The URL where Jirafeau is available, like file.domain.tld)

– Where to store all the files.

And that’s it! Jirafeau should be now perfectly working.

 

This is a pretty basic configuration but you can tweak most of the settings in lib/config.original.php (Theme, upload size, upload password, etc…)

I recommend you to have a look to Jirafeau’s wiki for more info.

Loves to discover web-based apps to install on his own server@home and write articles about it

0 Comments:

Add a comment

Name *
Email *
评论 *
验证码 *
进行人机身份验证
reCAPTCHA


Tags: published
October 21, 2019 at 12:56PM
Open in Evernote

评论

此博客中的热门博文

Telegram MTProto Proxy 介绍说明 – 开源代码|技术|教程资源|网络资源|首页不显示 – 如有乐享

监控FRPS端口并自动重启进程linux脚本_FRP教程_电脑博士

进阶Spring Boot(二)---Tomcat与Undertow 吞吐量对比 - 简书