--- layout: storage permalink: /:collection/:path.html --- # Configure a hub on Amazon EC2 {:.no_toc} This teaches you how to run a Gaia hub on Amazon EC2. Amazon EC2 is an affordable and convenient cloud computing provider. This example uses Amazon EC2 together with an EB3 instance for file storage. * TOC {:toc}
This documentation is appropriate for advanced power users who are familiar with command line tools, ssh
, and basic editing configuration files.
If you are planning on running an
Value | Description |
---|---|
<KEYPHRASE> |
A phrase to pass when using the hub admin. For example, hubba is a fun key phrase. |
<DOMAIN_NAME_VALUE> |
Your hub's domain name. For example, maryhub.ml is the domain name in this example. |
<STAGING_VALUE> |
Indicates what type of SSL to create, testing (`1`) or production (`0`). Set testing if you want to test without worrying about rate limiting. A testing cerificate is not secure. For this tutorial, use production (`0`). |
Type | Protocol | Port Range | Source | Description |
---|---|---|---|---|
SSH | TCP | 22 | My IP | optional |
HTTP | TCP | 80 | Anywhere | optional |
HTTPS | TCP | 443 | Anywhere | optional |
Service | Description |
---|---|
certbot |
Service running Let's Encrypt `certbot` client to support SSL. Certbot renews your certificates and reloads Nginx to pick up the changes. |
nginx |
Runs an Nginx proxy in front of the reader side-car. This service does things like rate-limiting and SSL termination. Your
that nginx service relies on your hub's readURL to make requests. Changes to a hub's readURL must be reflected in the nginx service configuration. |
admin |
A simple administrative service that allows you to administer the Gaia hub. Use REST calls with this service to get and set hub configuration values. |
reader |
The Gaia read side-car services get file requests on URLs that start with
your Gaia hub's readURL . You can determine your Gaia hub's read URL by either
looking for the readURL key in your Gaia hub's config file. This value is or by looking for
the read_url_prefix field in the data returned by a HUB_URL/hub_info page on your
Gaia hub. |
hub |
The Gaia hub service. |
File or Directory | Description |
---|---|
/etc/systemd/system |
Contains services for managing your Gaia hub. |
/etc/environment |
Contains the DOMAIN and STAGING variables you entered when creating your EC2 instance.
|
reset-ssl-certs.service |
Restarts all the Gaia hub services. |
/gaia/docker/admin-config |
Configuration for the hub admin service. |