diff options
author | Lei Yan | 2014-10-29 20:58:29 +0000 |
---|---|---|
committer | Lei Yan | 2014-10-29 20:58:29 +0000 |
commit | 5d2587925617f36b16303e25b6582c351fcb209b (patch) | |
tree | b151ebdfe828f112015d9dc62a7274639d5116e1 | |
parent | 23715b8267969adc2a4e0b06ee6794a5a1d1de83 (diff) | |
parent | ca33ff7ee658dec265277f1f063a55f2a0b5530a (diff) | |
download | genenetwork2-5d2587925617f36b16303e25b6582c351fcb209b.tar.gz |
Merge /home/gn2/gene
-rw-r--r-- | wqflask/other_config/nginx_conf/gn2python_zach.conf | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/wqflask/other_config/nginx_conf/gn2python_zach.conf b/wqflask/other_config/nginx_conf/gn2python_zach.conf new file mode 100644 index 00000000..aa8ce2d2 --- /dev/null +++ b/wqflask/other_config/nginx_conf/gn2python_zach.conf @@ -0,0 +1,42 @@ +server { + # Modeled after http://flask.pocoo.org/docs/deploying/wsgi-standalone/ + listen 80; + + server_name gn2python_zach.genenetwork.org; + + access_log /var/log/nginx/access.log; + error_log /var/log/nginx/error.log; + + location ^~ /css/ { + root /gene/wqflask/wqflask/static/; + } + + location ^~ /javascript/ { + root /gene/wqflask/wqflask/static/; + } + +# location ^~ /image/ { +# root /gene/wqflask/wqflask/static/; +# } + + location ^~ /images/ { + root /gene/wqflask/wqflask/static/; + } + + ### New - added by Sam + #location ^~ /static/ { + # root /gene/wqflask/wqflask/static/; + #} + + location / { + proxy_pass http://127.0.0.1:5556/; + proxy_redirect off; + + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + + proxy_read_timeout 40m; + } +} + |