wdir

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2021 License: MIT Imports: 9 Imported by: 0

README

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
  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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL