aboutsummaryrefslogtreecommitdiff
path: root/doc/README.org
diff options
context:
space:
mode:
authorPjotr Prins2016-05-13 03:23:42 -0500
committerPjotr Prins2016-05-13 03:23:42 -0500
commit7f12ce36f08f15b35adf3f0cff50ce9dc6565fb8 (patch)
tree4e4731d95f1324d17045b3e1509df63f70ec1a2d /doc/README.org
parent409848a4b3873fb0512ae17135b9794030eff024 (diff)
parent8876c8c9e98c5a3ecf54b4b8b1aee441b5cba0c3 (diff)
downloadgenenetwork2-7f12ce36f08f15b35adf3f0cff50ce9dc6565fb8.tar.gz
Merge branch 'staging' of github.com:pjotrp/genenetwork2 into staging
Diffstat (limited to 'doc/README.org')
-rw-r--r--doc/README.org31
1 files changed, 29 insertions, 2 deletions
diff --git a/doc/README.org b/doc/README.org
index 3c1fb910..345341e1 100644
--- a/doc/README.org
+++ b/doc/README.org
@@ -578,11 +578,38 @@ that comes in the Guix installation. It sits in something like
** Set up nginx port forwarding
-Install the webserver (as root)
+nginx can be used as a reverse proxy for GN2. For example, we want to
+expose GN2 on port 80 while it is running on port 5003. Essentially
+the configuration looks like
+
+#+begin_src js
+ server {
+ listen 80;
+ server_name test-gn2.genenetwork.org;
+ access_log logs/test-gn2.access.log;
+
+ proxy_connect_timeout 3000;
+ proxy_send_timeout 3000;
+ proxy_read_timeout 3000;
+ send_timeout 3000;
+
+ location / {
+ proxy_set_header Host $http_host;
+ proxy_set_header Connection keep-alive;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Host $server_name;
+ proxy_pass http://127.0.0.1:5003;
+ }
+}
+#+end_src js
+
+Install the nginx webserver (as root)
: guix package -i nginx
-The configuration examples can be found in the Guix store through
+The nginx example configuration examples can be found in the Guix
+store through
: ls -l /root/.guix-profile/sbin/nginx
: lrwxrwxrwx 3 root guixbuild 66 Dec 31 1969 /root/.guix-profile/sbin/nginx -> /gnu/store/g0wrcl5z27rmk5b52rldzvk1bzzbnz2l-nginx-1.8.1/sbin/nginx