Skip to content

ikotun-dev/warp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Warp

Also not recommended for production yet

This project was inspired by chimney https://github.com/aosasona/chimney.

It's also an attempt to deeply understand the inner workings of http/mimetypes/request lifecycle and more.

Deployed with warp

larchive on https://fly.io

Why warp?

  • Rewrites work by default. No special configuration is required.
  • As tiny as possible as well
  • Logs all incoming requests ( can be disabled )
  • Accurate Mimetypes for all files

Installation

Using Docker
Runing the docker image
docker pull ikotun/warp:latest
docker run -p PORT:8080 ikotun/warp:latest

This should have warp running on the specified port. You can confirm by checking your browser.

warp

Create a warp.yaml file in the root directory of your project. See code for sample

To use warp in your project
#Pull warp
FROM ikotun/warp:latest

#copy your built project
COPY ./dist /public

#copy yout warp config file
COPY warp.yaml ./warp.yaml

#Expose 80
EXPOSE 8080

About

[WIP] static file server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published