All Projects → wapm-packages → nginx

wapm-packages / nginx

Licence: other
Nginx compiled to WebAssembly

Programming Languages

c
50402 projects - #5 most used programming language
javascript
184084 projects - #8 most used programming language
Vim Script
2826 projects
Makefile
30231 projects
XS
67 projects
C++
36643 projects - #6 most used programming language

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].