diff --git a/CHANGELOG.md b/CHANGELOG.md index bf71da2..82b7244 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,10 @@ ### Pending Release +### v2.13.1 + +- :bug: UDP Ports health check on alternate service + ### v2.13.0 - :tada: Perform JSON Diff before writing config file if a diff has been detected. diff --git a/cloudformation/lib/api.js b/cloudformation/lib/api.js index 073ff2a..eb06d50 100644 --- a/cloudformation/lib/api.js +++ b/cloudformation/lib/api.js @@ -52,7 +52,7 @@ const PORTS = [{ },{ Name: 'SRT', Port: 8890, - Protocol: 'tcp', + Protocol: 'udp', Description: 'SRT Protocol', Certificate: false, Enabled: true @@ -369,8 +369,9 @@ for (const p of PORTS) { HealthCheckEnabled: true, HealthCheckIntervalSeconds: 30, - HealthCheckPort: p.Port, - HealthCheckProtocol: p.Protocol.toUpperCase(), + // UDP Health checks fallback to TCP + HealthCheckPort: p.Protocol.toUpperCase() === 'UDP' ? '9997' : p.Port, + HealthCheckProtocol: p.Protocol.toUpperCase() === 'UDP' ? 'TCP' : p.Protocol.toUpperCase(), HealthCheckTimeoutSeconds: 10, HealthyThresholdCount: 5 } diff --git a/start b/start index 453f78c..38a2ca5 100755 --- a/start +++ b/start @@ -3,13 +3,13 @@ # Add MediaConfig File # -set -x set -euo pipefail echo "Contents:" ls /opt/mediamtx/ if [[ ${FORCE_NEW_CONFIG} == "true" ]]; then + echo "Force New Config = true - deleting mediamtx.yml" rm /opt/mediamtx/mediamtx.yml || true fi