Skip to content

LordCasser/multifile

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multifile

Multifile is designed to be an Nginx-like static web server, but much more easier to use.

Start

You need an Linux/Windows/MacOS as your server.

I strongly recommend using Golang to compile the binaries from source yourself.

Build From Source

If you download the pre-build binary from the release page, you can skip this step.

git clone https://github.com/LordCasser/multifile.git
cd multifile
go build .

Init Environment

For windows

multifile.exe -init

For Linux/MacOS

./multifile -init

and you will find

├─multifile  #binary
├─resources  #used for storing certificates
└─static     #used for storing static web files

Start Service

Set certificates

Just put HTTPS certificates for nginx into resources folder, like

resources/
├── tls.crt
├── tls.csr
├── tls.key
└── tls.pem

Set static web files (example by hexo)

There are already many tutorials on the use of hexo on the Internet, so I won't repeat them here. This user manual starts with the hexo already deployed.

Compile static file (in hexo floder)

hexo g 

Copy files to static folder

cp -r ./publish ../multifile/static/

Start Server

with HTTPS (need HTTPS certificates)

./multifile -SSL

without HTTPS

./multifile

custom port

./multifile -Port 8080 #for example

And enjoy it

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%