Skip to content
Permalink
Browse files

Adding public hostname from ec2 to configuration (#94)

  • Loading branch information
augustocdias committed Feb 20, 2020
1 parent 336e501 commit a6c21e684df5907c4dfab3c0179667ff39ac50c4
Showing with 2 additions and 0 deletions.
  1. +2 −0 cloud_formation.yml
@@ -163,12 +163,14 @@ Resources:
systemctl start docker
usermod -a -G docker ec2-user

export publichost=$(ec2-metadata --public-hostname | cut -d ' ' -f2)
# Create configuration file
mkdir -p /home/ec2-user/podsync/data
tee /home/ec2-user/podsync/config.toml <<EOF
[server]
port = ${PodsyncPort}
data_dir = "/home/ec2-user/podsync/data"
hostname = "http://$publichost:${PodsyncPort}"

[tokens]
youtube = "${YouTubeApiKey}"

0 comments on commit a6c21e6

Please sign in to comment.
You can’t perform that action at this time.