介绍
- yet another cloud drive
- 简洁
- 支持webdav
- 无法直接挂载onedrive, google drive等
实现
# 先安装docker.io 和 docker-compose
FILERUN_MYSQL_ROOTPASSWORD=a26Gb2bEMK9y
FILERUN_MYSQL_USER=filerun
FILERUN_MYSQL_PASSWORD=E6pLMgrKB68
FILERUN_MYSQL_DATABASE=filerun
cat > ./docker-compose.yml <<EOF
version: '2'
services:
db:
image: mariadb:10.1
environment:
MYSQL_ROOT_PASSWORD: ${FILERUN_MYSQL_ROOTPASSWORD}
MYSQL_USER: ${FILERUN_MYSQL_USER}
MYSQL_PASSWORD: ${FILERUN_MYSQL_PASSWORD}
MYSQL_DATABASE: ${FILERUN_MYSQL_DATABASE}
volumes:
- /data/filerun/db:/var/lib/mysql
web:
image: afian/filerun
environment:
FR_DB_HOST: db
FR_DB_PORT: 3306
FR_DB_NAME: ${FILERUN_MYSQL_DATABASE}
FR_DB_USER: ${FILERUN_MYSQL_USER}
FR_DB_PASS: ${FILERUN_MYSQL_PASSWORD}
APACHE_RUN_USER: www-data
APACHE_RUN_USER_ID: 33
APACHE_RUN_GROUP: www-data
APACHE_RUN_GROUP_ID: 33
depends_on:
- db
links:
- db:db
ports:
- "19080:80"
volumes:
- /data/filerun/html:/var/www/html
- /data/filerun/user-files:/user-files
EOF
docker-compose up -d
CF+反代 – 特别注意https这一样
- https://3mile.github.io/archives/2020/1127124547/
proxy_redirect off;
proxy_pass http://127.0.0.1:19080;
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 REMOTE-HOST $remote_addr;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-Proto "https";
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
client_max_body_size 1024m;
开启WebDav – https://your.website.com/dav.php/
NextCloud客户端 – cound’t get it to work
测试