wdir

English | 简体中文
Directory indexing system based on golang
Preview

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
template: compress
path: /Users/52funny
log_path: log
show_hidden_files: false
Configuration item |
Configuration instructions |
config.port |
Server port |
config.template |
Template catalog |
config.path |
Index catalog |
config.log_path |
Log catalog |
config.show_hidden_files |
Show Hidden Files |
Third Party Library