X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6988f4d44d2f8f7fc4aa2c381334c44d3133cf31..48dd255814cfc90a095132b6f621af13430267e0:/doc/install/install-api-server.html.textile.liquid diff --git a/doc/install/install-api-server.html.textile.liquid b/doc/install/install-api-server.html.textile.liquid index ad31d96fd1..3c188e3828 100644 --- a/doc/install/install-api-server.html.textile.liquid +++ b/doc/install/install-api-server.html.textile.liquid @@ -16,21 +16,19 @@ h3(#install_postgres). Install PostgreSQL {% include 'install_postgres' %} -h3(#build_tools_apiserver). Build tools - -On older distributions, you may need to use a backports repository to satisfy these requirements. For example, on older Red Hat-based systems, consider using the "postgresql92":https://www.softwarecollections.org/en/scls/rhscl/postgresql92/ and "nginx16":https://www.softwarecollections.org/en/scls/rhscl/nginx16/ Software Collections. +h2(#install_apiserver). Install API server and dependencies On a Debian-based system, install the following packages: -
~$ sudo apt-get install bison build-essential libcurl4-openssl-dev git nginx arvados-api-server
+
~$ sudo apt-get install bison build-essential libcurl4-openssl-dev git arvados-api-server
 
On a Red Hat-based system, install the following packages: -
~$ sudo yum install bison make automake gcc gcc-c++ libcurl-devel nginx git arvados-api-server
+
~$ sudo yum install bison make automake gcc gcc-c++ libcurl-devel git arvados-api-server
 
@@ -214,11 +212,9 @@ For best performance, we recommend you use Nginx as your Web server front-end, w
    -
  1. Install Nginx via your distribution or a backports repository.
  2. - -
  3. Install Phusion Passenger for Nginx.
  4. +
  5. Install Nginx and Phusion Passenger.
  6. -
  7. Puma is already included with the API server's gems. We recommend you use a tool like runit or something similar. Here's a sample run script for that:

    +
  8. Puma is already included with the API server's gems. We recommend you run it as a service under runit or a similar tool. Here's a sample runit script for that:

    #!/bin/bash
     
    @@ -266,17 +262,31 @@ upstream websockets {
     
     proxy_http_version 1.1;
     
    +# When Keep clients request a list of Keep services from the API server, the
    +# server will automatically return the list of available proxies if
    +# the request headers include X-External-Client: 1.  Following the example
    +# here, at the end of this section, add a line for each netmask that has
    +# direct access to Keep storage daemons to set this header value to 0.
    +geo $external_client {
    +  default        1;
    +  10.20.30.0/24  0;
    +}
    +
     server {
       listen       [your public IP address]:443 ssl;
       server_name  uuid_prefix.your.domain;
     
       ssl on;
    +  ssl_certificate     /YOUR/PATH/TO/cert.pem;
    +  ssl_certificate_key /YOUR/PATH/TO/cert.key;
     
       index  index.html index.htm index.php;
     
       location / {
         proxy_pass            http://api;
         proxy_redirect        off;
    +    proxy_connect_timeout 90s;
    +    proxy_read_timeout    300s;
     
         proxy_set_header      X-Forwarded-Proto https;
         proxy_set_header      Host $http_host;
    @@ -291,12 +301,16 @@ server {
       server_name  ws.uuid_prefix.your.domain;
     
       ssl on;
    +  ssl_certificate     /YOUR/PATH/TO/cert.pem;
    +  ssl_certificate_key /YOUR/PATH/TO/cert.key;
     
       index  index.html index.htm index.php;
     
       location / {
         proxy_pass            http://websockets;
         proxy_redirect        off;
    +    proxy_connect_timeout 90s;
    +    proxy_read_timeout    300s;
     
         proxy_set_header      Upgrade $http_upgrade;
         proxy_set_header      Connection "upgrade";