Source code of filesite.io. https://filesite.io
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
filesite 3323ba81d5 change api/ls request method to post 2 years ago
bin merge fsc 3 years ago
conf add api/switchtheme 2 years ago
controller change api/ls request method to post 2 years ago
lib DirScanner add api call support, improve dir/file management api 2 years ago
plugins add api/login 2 years ago
runtime merge fsc 3 years ago
test add description and cate readme support 3 years ago
themes bug fix: show default image when there is not images of videos 2 years ago
views merge fsc 3 years ago
www api/uploadbase64 done, fix DirScanner's bug to support php 5.6 2 years ago
.editorconfig add .editorconfig 2 years ago
.gitignore add new theme GoogleImage 3 years ago
Dockerfile Dockerfile update 3 years ago
LICENSE Initial commit 3 years ago
README.md readme update 3 years ago
docker-entrypoint.sh entrypoint.sh update 3 years ago
php_extension_install.md improve code for php 5.5 2 years ago

README.md

Machete

Source code of filesite.io.

简介

Machete砍刀,它能砍、能削、能切、能剁,最适合披荆斩棘;

砍刀不像大刀、长剑、长矛为战场而生,但在日常生活中使用也是得心应手。

Filesite.io也一样,它短小精悍,使用它把常见的本地文件制作成网站,就像拿起砍刀一样简单, 所以我们将filesite.io的源码命名为machete

Docker使用

从dockerhub下载镜像:

docker pull filesite/machete

启动machete容器:

docker run --name machete -p 1080:80 -itd filesite/machete [皮肤名]

其中皮肤名称可选值:

[
    'manual',           //文档网站
    'webdirectory',     //导航网站
    'googleimage'       //图片网站
]

本地监听端口1080请根据自己需要修改。

machete在容器中的目录:

/var/www/machete/

可根据自己的需要,通过-v参数映射本地内容目录到容器目录, 示例如下:

docker run --name machete -p 1080:80 \
    -v /mine/content/:/var/www/machete/www/content/ \
    -itd filesite/machete \
    manual

这样可以通过更新本地内容目录的文件来实时更新网站内容。

查看容器:

docker ps

如果看到名字为machete的容器正在运行,说明容器启动完成,访问本地网址测试:

http://127.0.0.1:1080