Skip to content

Instantly share code, notes, and snippets.

@joseluis
Forked from maryo/nginx.conf
Created January 18, 2016 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joseluis/9a837a930cdc8b79064c to your computer and use it in GitHub Desktop.
Save joseluis/9a837a930cdc8b79064c to your computer and use it in GitHub Desktop.
Nginx dart configuration
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
gzip on;
server {
listen 80;
location / {
root D:\Www\$host\web;
try_files $uri @proxy;
}
location @proxy {
proxy_pass http://127.0.0.1:8080;
proxy_http_version 1.1;
}
}
server {
listen 80;
server_name localhost;
location / {
root D:\Www\localhost;
index index.html;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment