Created
November 5, 2019 02:33
-
-
Save anandanand84/dd572fd7504c4a9cda4d82413f6b9e65 to your computer and use it in GitHub Desktop.
Simple nginx Webassembly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
events { | |
worker_connections 1024; | |
} | |
http { | |
include /etc/nginx/mime.types; | |
types { | |
application/wasm wasm; | |
} | |
default_type text/html; | |
gzip on; | |
gzip_comp_level 5; | |
gzip_http_version 1.1; | |
gzip_min_length 256; | |
server { | |
listen 80; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run --rm \ | |
-p 8001:80 \ | |
-v $(pwd)/dist/:/etc/nginx/html/ \ | |
-v $(pwd)/nginx.conf:/etc/nginx/nginx.conf:ro \ | |
nginx:1.17-alpine |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment