1
0
Fork 0
empact/nginx.conf

34 lines
658 B
Nginx Configuration File
Raw Normal View History

2015-03-07 10:23:08 +00:00
upstream empact {
server 127.0.0.1:8080 max_fails=3 fail_timeout=30s;
}
server {
listen 80 default_server;
root /home/empact/app/static;
charset utf-8;
location / {
index hello.html;
}
location ~ ^/app/ {
2015-03-16 10:46:30 +00:00
add_header X-UA-Compatible IE=edge;
add_header Content-Language en;
2015-03-07 10:23:08 +00:00
rewrite ^/app/(.*) /app.html last;
}
location ~ ^/(auth|api)/ {
proxy_pass http://empact;
}
2015-03-16 10:46:30 +00:00
location /favicon.ico {
alias /home/empact/app/static/images/favicon.ico;
}
2015-03-07 10:23:08 +00:00
location ~ .*\.(js|css|png)$ {
add_header Cache-Control public;
expires max;
gzip_static on;
gzip on;
gzip_proxied any;
gzip_vary on;
}
}