From 81c26a0f15efd65503a89ed32a422151bad807da Mon Sep 17 00:00:00 2001 From: ingalls Date: Mon, 16 Sep 2024 11:30:41 -0600 Subject: [PATCH] Config Check --- cloudformation/lib/api.js | 2 +- start | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cloudformation/lib/api.js b/cloudformation/lib/api.js index 0bb837f..a42515b 100644 --- a/cloudformation/lib/api.js +++ b/cloudformation/lib/api.js @@ -39,7 +39,7 @@ const PORTS = [{ Port: 8888, Protocol: 'tcp', Description: 'HLS Protocol', - Certificate: false, + Certificate: true, Enabled: true },{ Name: 'WEBRTC', diff --git a/start b/start index d57c61e..548cc7b 100755 --- a/start +++ b/start @@ -7,7 +7,8 @@ set -x set -euo pipefail # Copy EFS Persisted certs to Let's Encrypt Dir -if [ ! -e "/opt/mediamtx/mediamtx.yml" ]; then +if [ ! -f "/opt/mediamtx/mediamtx.yml" ]; then + echo "NO CONFIG FOUND" cp "/mediamtx.yml" "/opt/mediamtx/mediamtx.yml" fi;