AWS EC2
instance and allow the HTTP
(80) and HTTPS
(443) connection.SSL
enabled.Install the dependencies and software
sudo apt update
sudo apt install -y git vim gnupg jq
Install docker
and docker-compose
Clone the Gaia
repository
git clone <https://github.com/stacks-network/gaia.git> && cd gaia/deploy/docker
Copy and edit .env
file
export MYGAIADOMAIN=<gaia domain name>
export MYGAIAEMAIL=<gaia email address>
cp sample-disk.env disk.env
sed -i 's/my-domain.com/'"$MYGAIADOMAIN"'/g' disk.env
sed -i 's/my-email@example.com/'"$MYGAIAEMAIL"'/g' disk.env
Start Gaia Hub
service
./gaiahub.sh start
Stop Gaia Hub
service
./gaiahub.sh stop
Verify the server works locally
curl -sk <https://localhost/hub_info> | jq
Test the deployed Gaia
server
npm install
node ./deploy/gaia_test.js <https://yourgaiaurl>
When using the S3
as Gaia
storage driver, you need to make some modifications on .env
file and gaiahub.sh
file. This is how our .env
file and gaiahub.sh
file should be look like.
aws.env
##### REQUIRED #####
# CHANGE THIS TO YOUR DOMAIN
DOMAIN_NAME="dev2.gaia.togggle.io"
# CHANGE THIS TO YOUR EMAIL - USED FOR LETSENCRYPT CERT ACQUISITION
CERTBOT_EMAIL="fritzsima0018@outlook.com"
**GAIA_DRIVER="aws"
GAIA_BUCKET_NAME="<S3 Bucket Name>"
GAIA_S3_ACCESS_KEY_ID="<S3 Access Key ID>"
GAIA_S3_SECRET_ACCESS_KEY="<S3 Secret Access Key>"**
... ...