Skip to content
Nginx compiled to WebAssembly
C JavaScript Vim script Makefile XS C++ Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example Refactored codebase. Integrated wapm Apr 10, 2019
nginx Refactored codebase. Integrated wapm Apr 10, 2019
.gitignore
README.md Refactored codebase. Integrated wapm Apr 10, 2019
build.sh Refactored codebase. Integrated wapm Apr 10, 2019
nginx.wasm Refactored codebase. Integrated wapm Apr 10, 2019
wapm.toml convert abi to lowercase Apr 16, 2019

README.md

Nginx

You can install nginx with:

wapm install nginx

Running

You can run nginx.

$ wapm run nginx -p example -c nginx.conf
2015/10/21 07:28:00 [notice] 73097#0: nginx/1.15.3
2015/10/21 07:28:00 [notice] 73097#0: built by clang 6.0.1  (emscripten 1.38.12 : 1.38.12)
2015/10/21 07:28:00 [notice] 73097#0: OS: Darwin

Note: the example directory is taken from here: https://github.com/wapm-packages/nginx

And you will have a webserver running in: http://localhost:8080/

Building from Source

You will need Emscripten SDK (emsdk) to build the nginx.wasm file.

Steps:

  1. Setup emsdk (>= 1.38.11), see Installation Instructions
  2. Run bash build.sh
You can’t perform that action at this time.