Coder Social home page Coder Social logo

serv's Introduction

Serv

serv logo

An ultra lightweight, minimal, and fast web server. (The binary is only ~2mb!!)

Getting Started

These instructions will cover usage information and for the docker container

Prerequisities

In order to run this container you'll need docker installed.

Usage

Container Parameters

Create a container to host the server

docker pull aurax86/serv:latest
docker run --platform linux/amd64 -d -p 8080:80 aurax86/serv:latest 

Or host files from a volume

docker run --platform linux/amd64 -d -p 8080:80 -v "$PWD":/dist aurax86/serv:latest 

where $PWD is the directory from the host which you wish to deploy.

For 32-bit arm, use --platform linux/arm/v7 and --platform linux/arm/v8 for 64-bit

Environment Variables

  • SERV_DIR - Directory to serve within the container, set to /dist by default.
  • IDX_FILE - Index file from within SERV_DIR, defaults to index.html.

Volumes

  • /dist - Mount a volume to this directory in the container

Built With

  • The Rust Programming Language
  • cargo cross cross-compiler
  • docker buildx

Find Us

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Acknowledgments

  • The Rust community discord server
  • The Actix community and the Actix project

serv's People

Contributors

yorqat avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.