Skip to content

Instantly share code, notes, and snippets.

@anandanand84
Created November 5, 2019 02:33
Show Gist options
  • Save anandanand84/dd572fd7504c4a9cda4d82413f6b9e65 to your computer and use it in GitHub Desktop.
Save anandanand84/dd572fd7504c4a9cda4d82413f6b9e65 to your computer and use it in GitHub Desktop.
Simple nginx Webassembly
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;
}
}
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