https://github.com/wapm-packages/nginx
Nginx compiled to WebAssembly
https://github.com/wapm-packages/nginx
Last synced: 7 months ago
JSON representation
Nginx compiled to WebAssembly
- Host: GitHub
- URL: https://github.com/wapm-packages/nginx
- Owner: wapm-packages
- Created: 2018-11-29T22:16:00.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-16T20:44:39.000Z (over 6 years ago)
- Last Synced: 2024-11-09T23:02:28.784Z (about 1 year ago)
- Language: C
- Homepage: https://wapm.io/package/nginx
- Size: 3.87 MB
- Stars: 50
- Watchers: 3
- Forks: 4
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- AwesomeCompiler - nginx
README
# Nginx
You can install nginx with:
```shell
wapm install nginx
```
## Running
You can run nginx.
```shell
$ 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](https://github.com/juj/emsdk#installation-instructions)
2. Run `bash build.sh`