Skip to content

52funny/wdir

Repository files navigation

wdir

GitHub go.mod Go version GitHub

English | 简体中文

Directory indexing system based on golang

Preview

1 2 3

Usage

git clone https://github.com/52funny/wdir
cd wdir
go build
./wdir

There is a default configuration file config.yaml in the wdir folder. you can specify the configuration file with the -c command. ./webd -c config

Docker

docker run -d --name wdir -p 9194:8080 -v /Users/52funny:/mnt  52funny/wdir

8080 is the port inside the container, 9194 is the port you want to map locally. /mnt is the directory to be indexed inside the container, /Users/52funny is the directory mapped locally to the container.

Configuration

There is config.yaml in the wdir directory, encoded as UTF-8

Configuration template

config:
  port: 8080
  path: /Users/52funny
  log_path: log
  show_hidden_files: false
Configuration item Configuration instructions
config.port Server port
config.path Index catalog
config.log_path Log catalog
config.show_hidden_files Show Hidden Files

Third Party Library