2017-08-22 01:11:07 +00:00
|
|
|
#blootstrap nginx conf
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
|
|
|
|
|
|
|
|
location / {
|
|
|
|
proxy_pass http://127.0.0.1:6699/;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
gzip on;
|
2017-10-21 15:46:06 +00:00
|
|
|
gzip_comp_level 5;
|
|
|
|
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json;
|
2017-08-22 01:11:07 +00:00
|
|
|
}
|
2017-09-28 17:28:14 +00:00
|
|
|
#uncomment for static file server
|
2017-08-22 01:11:07 +00:00
|
|
|
#location /static/ {
|
|
|
|
#uncomment to turn on caching
|
|
|
|
#expires modified 1y;
|
|
|
|
#access_log off;
|
|
|
|
#add_header Cache-Control "public";
|
|
|
|
#gzip on;
|
2017-10-21 15:46:06 +00:00
|
|
|
#gzip_comp_level 5;
|
|
|
|
#gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json;
|
2017-09-28 17:29:15 +00:00
|
|
|
#use project location
|
|
|
|
#alias /var/node/intval3/static/;
|
2017-08-22 01:11:07 +00:00
|
|
|
#}
|
2017-09-28 17:28:14 +00:00
|
|
|
}
|