[新服务] ifile+Docker设立云盘网盘

Tags:

介绍

  • yet another cloud drive
  • https://ifile.space/docs/start

实现

export DOCKER_NAME='ifile'
export DOCKER_PORT=11580

docker rm -f ${DOCKER_NAME} # if existing

cd ~/data/${DOCKER_NAME} 

docker run -d --name=${DOCKER_NAME} --restart=always 
  -p ${DOCKER_PORT}:3030 
  -v $(pwd)/conf:/root/conf 
  -v $(pwd)/files:/root/files 
  -v $(pwd)/data:/root/data 
  -v $(pwd)/assets:/root/assets 
  -v $(pwd)/tmp:/root/tmp 
  -v $(pwd)/thumb:/root/thumb 
  lgs821/ifile  

docker logs -f ${DOCKER_NAME}
# 可以看到初始的用户名admin + 密码

# 访问 your-ip-or-domain.com:11580 即可

# 重设管理员账号密码
docker exec -it ${DOCKER_NAME} /bin/sh
./ifile -resetpass
exit

CF+反代 – 就不反代了,很简单

    location / {
      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 X-Forwarded-Proto $scheme; 
      proxy_pass http://127.0.0.1:3030;
  }

测试

Leave a Reply