Sign inSign up

johanbook/file-domain-server

By johanbook

•Updated almost 4 years ago

File server with support for multiple domains

Image
0

309

johanbook/file-domain-server repository overview

⁠file-domain-server

This software has not been tested in regards of security and should not be used in a production environment

file-domain-server is a simplistic Nodejs HTTP file server supporting multiple domains. It is mainly intended to run an internal network with its own DNS server.

⁠Configuration

Create an asset folder, named build by default. In this folder create one folder for each domain that should be served. These folders should contain the files served on the respective domains. For example:

build
build/localhost
build/localhost/favicon.ico
build/localhost/index.html
build/mybusiness.com
build/mybusiness.com/favicon.ico
build/mybusiness.com/index.html
build/mybusiness.com/script.js
build/mybusiness.com/styles.css
build/mycat.com
build/mycat.com/favicon.ico
build/mycat.com/index.html
build/mycat.com/script.js

⁠Docker

The server can be run through Docker

docker run \
	--detach \
	--publish 8080:8080 \
	--restart unless-stopped \
	--volume ${PWD}/build/:/app/build/ \
	johanbook/file-domain-server:latest

Tag summary

Content type

Image

Digest

sha256:53b9130c4…

Size

40.1 MB

Last updated

almost 4 years ago

docker pull johanbook/file-domain-server