X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9ac37f367da0b11971f2ecf8a80a38ae60d43a61..6a983720b3d1ee8e613bf3902e69fd14f505b995:/doc/install/install-keepproxy.html.textile.liquid diff --git a/doc/install/install-keepproxy.html.textile.liquid b/doc/install/install-keepproxy.html.textile.liquid index 646b6433a9..9e8f878782 100644 --- a/doc/install/install-keepproxy.html.textile.liquid +++ b/doc/install/install-keepproxy.html.textile.liquid @@ -23,11 +23,10 @@ h2. Install Keepproxy First add the Arvados apt repository, and then install the Keepproxy package. -
~$ echo "# apt.arvados.org" > /etc/apt/sources.list.d/apt.arvados.org.list
-~$ echo "deb http://apt.arvados.org/ wheezy main" >> /etc/apt/sources.list.d/apt.arvados.org.list
-~$ /usr/bin/apt-key adv --keyserver pool.sks-keyservers.net --recv 1078ECD7
-~$ /usr/bin/apt-get update
-~$ /usr/bin/apt-get install keepproxy
+
~$ echo "deb http://apt.arvados.org/ wheezy main" | sudo tee /etc/apt/sources.list.d/apt.arvados.org.list
+~$ sudo /usr/bin/apt-key adv --keyserver pool.sks-keyservers.net --recv 1078ECD7
+~$ sudo /usr/bin/apt-get update
+~$ sudo /usr/bin/apt-get install keepproxy
 
@@ -65,6 +64,21 @@ Because the Keepproxy is intended for access from anywhere on the internet, it i This is best achieved by putting a reverse proxy with SSL support in front of Keepproxy. Keepproxy itself runs on port 25107 by default; your reverse proxy can run on port 443 and pass requests to Keepproxy on port 25107. +If possible, the proxy should be configured to add CORS headers to its own error responses -- otherwise in-browser applications can't report proxy errors. For example, in nginx >= 1.7.5: + +
+server {
+  server_name keep.example.com
+  ...
+  add_header 'Access-Control-Allow-Methods' 'GET, HEAD, POST, PUT, OPTIONS' always
+  add_header 'Access-Control-Allow-Origin' '*' always
+  add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Length, Content-Type, X-Keep-Desired-Replicas' always
+  add_header 'Access-Control-Max-Age' '86486400' always
+}
+
+ +*Warning:* Make sure you don't inadvertently add CORS headers for services _other than keepproxy_ while you're doing this. + h3. Tell the API server about the Keepproxy server The API server needs to be informed about the presence of your Keepproxy server. Please execute the following commands on your shell server.