simple-static-file-viewer

Lightweight simple static file viewer

Stars
5

Simple static file viewer

This is the simple web server which can read a static files.

WEB

Description

I cannot confirm the latest static resource when I manage the static resources such as html or the image in git if there is not git environment.

I made Simple static file viewer to solve it.

I use Alpine linux-based nginx and can use it in familiar UI by autoindex.

It is lightweight and is simple and can easily customize it by nginx which got used to treating it.

githtmlgit

Simple static file viewer

Alpine linuxnginxautoindexUI

nginx

Features

  • Dcoker v17
  • docker-compose v1.11
  • Alpine linux v1.12.0
  • nginx v1.12.0

Requirement

  • Docker
  • docker-compose

Change the version of docker-compose.yml from 3 to 2 when you use docker which does not support v3 of docker-compose.

docker-composev3dockerdocker-compose.ymlversion32

Screenshot

Usage

  1. git clone https://github.com/treetips/simple-static-file-viewer.git
  2. docker-compose up -d
  3. copy static files to htdocs directory.
  4. browse http://localhost:8081/

Change Lang

Edit docker-compose.yml.

environment:
  - LANG=ja_JP.UTF-8

Change timezone

Edit docker-compose.yml.

environment:
  - TZ=Asia/Tokyo

Customie nginx

Customize default.conf freely.

default.conf is read as follows by nginx.conf.

default.conf

default.confnginx.conf

include /etc/nginx/conf.d/*.conf;

Known issue for macOS

In Docker for mac, xhyve is used for virtualization, but the problem that the same period of the time cannot perform during sleep of macOS is reported.

Docker for macxhyvemacOS

Time drift in Moby VM and containers caused by system sleep #17

License

MIT