Sign inSign up

naore/chfs3_ssl

By naore

•Updated over 1 year ago

web file browser supporting webdav, chfs v3.1 from http://iscute.cn/chfs build with ssl

Image
0

485

naore/chfs3_ssl repository overview

Default yet better change yourself:

  ssl: enabled
  username: user
  password: password
  permit: w

Guest pass is enabled as read-only, you may change it in setting file.

Setting as below to deny guest pass,

[guest]
rule.none=*

Read more settings in http://iscute.cn/asset/chfs.ini⁠

Simply run

docker run -d \
--name=chfs3 \
--restart=unless-stopped \
-e CUSER=user \
-e CPASS=password \
-e CPERMIT=w \
-v /root/your_share:/home/share \
-v /etc/localtime:/etc/localtime:ro \
-p 58081:80 \
naore/chfs3_ssl

And visit https://0.0.0.0:58081⁠ , or webdav site https://0.0.0.0:58081/webdav⁠

Recommend using docker-compose

Save in docker-compose.yml

version: '3'
services:
  chfs3:
    restart: unless-stopped
    image: naore/chfs3_ssl:latest
    ports:
      - 58081:80
    environment:
      - CUSER=user
      - CPASS=password
      - CPERMIT=w
    volumes:
      - /root/your_share:/home/share
      - /etc/localtime:/etc/localtime:ro
#      - /root/your_domain_com.crt:/home/ssl/ssl.cert
#      - /root/your_domain_com.key:/home/ssl/ssl.key
# Default ssl cert & key can be used in personal use.
#      - /root/your_chfs.ini:/opt/chfs/chfs.ini
# Use your own setting based on official .ini file: http://iscute.cn/asset/chfs.ini

Run docker-compose up -d

You can build a image yourself with Dockerfile

FROM alpine:latest

ENV CUSER=user
ENV CPASS=password
ENV CPERMIT=w

COPY chfs /opt/chfs/chfs
COPY chfs.ini /opt/chfs/chfs.ini
COPY san_domain_com.crt /home/ssl/ssl.crt
COPY san_domain_com.key /home/ssl/ssl.key

RUN chmod +x /opt/chfs/chfs \
 && touch /start.sh \
 && chmod +x /start.sh \
 && echo "#!/bin/sh" >> /start.sh \
 && echo 'sed -i "s/{CUSER}/${CUSER}/" /opt/chfs/chfs.ini ' >> /start.sh \
 && echo 'sed -i "s/{CPASS}/${CPASS}/" /opt/chfs/chfs.ini ' >> /start.sh \
 && echo 'sed -i "s/{CPERMIT}/${CPERMIT}/" /opt/chfs/chfs.ini ' >> /start.sh \
 && echo "/opt/chfs/chfs -file=/opt/chfs/chfs.ini " >> /start.sh 

EXPOSE 80

CMD ["/start.sh"]

Tag summary

Content type

Image

Digest

sha256:50992a546…

Size

10.6 MB

Last updated

over 1 year ago

docker pull naore/chfs3_ssl