From 9155bb046ff48fbeb77932b23d87a6370fc583ed Mon Sep 17 00:00:00 2001
From: Nathan Rodet <nrodet@grandlyon.com>
Date: Fri, 20 Jan 2023 13:16:11 +0100
Subject: [PATCH] TTYD

---
 README.md                        | 1 +
 instance-scripts/scripts/ttyd.sh | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 860591d..33a9ac0 100644
--- a/README.md
+++ b/README.md
@@ -30,6 +30,7 @@ After the resources provisionned with Terraform, Cloud-init will configure the i
 After deployment, each resource can be accessed though HTTPS depending on their count number :
 - https://desktop-0.rust-0.daag.alpha.grandlyon.com/
 - https://code-0.rust-0.daag.alpha.grandlyon.com/
+- https://terminal-0.rust-0.daag.alpha.grandlyon.com/
 - https://rust-0.daag.alpha.grandlyon.com/
 
 
diff --git a/instance-scripts/scripts/ttyd.sh b/instance-scripts/scripts/ttyd.sh
index e7016e6..eeb2c71 100644
--- a/instance-scripts/scripts/ttyd.sh
+++ b/instance-scripts/scripts/ttyd.sh
@@ -5,7 +5,7 @@
 #
 
 mkdir -p /root/ttyd
-curl https://github.com/tsl0922/ttyd/releases/download/1.7.3/ttyd.x86_64 -o root/ttyd/ttyd.x86_64
+curl -k -L -s https://github.com/tsl0922/ttyd/releases/download/1.7.3/ttyd.x86_64 -o root/ttyd/ttyd.x86_64
 chmod +x /root/ttyd/ttyd.x86_64
 curl https://forge.grandlyon.com/systemes-dinformation/alpha/projects/labo-rust/-/raw/develop/instance-scripts/config-files/ttyd.service -o etc/systemd/system/ttyd.service
 sed -i "s|%user_password%|$(scw-userdata user_password)|g" /etc/systemd/system/ttyd.service
-- 
GitLab