1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00

Adding public hostname from ec2 to configuration (#94)

This commit is contained in:
Augusto César Dias
2020-02-20 22:43:14 +01:00
committed by GitHub
parent 336e501593
commit a6c21e684d

View File

@@ -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}"