Skip to content
forked from txn2/asws

Another static web server, plus JSON REST API for exposing specified directory listings. Useful for download pages or listings asset for web applications.

License

Notifications You must be signed in to change notification settings

76428778FADA/asws

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASWS Static Web Server

Serve a Static Site

The following example exposes port 2701 on your local machine and forwards all traffic to port 80 on the asws docker container:

docker run -e DEBUG=true -p 2701:80 -v "$(pwd)"/www:/www txn2/asws:1.2.3

Environment Variable Defaults

  • PORT="80"
  • STATIC_DIR="./www"
  • STATIC_PATH="./www"
  • FS_ENABLED="no"
  • FS_DIR="./files"
  • FS_PATH="/files"
  • DEBUG="false"
  • METRICS="true"
  • METRICS_PORT="9696"

Build Release

Build test release:

goreleaser --skip-publish --rm-dist --skip-validate

Build and release:

GITHUB_TOKEN=$GITHUB_TOKEN goreleaser --rm-dist

About

Another static web server, plus JSON REST API for exposing specified directory listings. Useful for download pages or listings asset for web applications.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 57.6%
  • Dockerfile 36.9%
  • HTML 5.5%