From c80c1e977f89dacdbaead536dd8b126a53413624 Mon Sep 17 00:00:00 2001 From: Zorglube Date: Fri, 8 Jul 2022 14:20:26 +0200 Subject: [PATCH] Clever Cloud deployement test Update stream conf for run Typo : RoomAccessPin Typ RoomAccessPin is a String RoomAccess = pin Update stream conf for run Sparate Clever Cloud config Fix config source file Revert "Fix config source file" This reverts commit 4a774f7f38d942c1acb197cf3f1ecb519bf40e00. Revert useless diff Rename Clever-Cloud Settings Try env var MN_STREAM_KEY Try env var MN_STREAM_KEY third Open RTMP port StreamKey Return to default ports Add Clever-Cloud doc Clever CLoud settings Remove useless Update default clever cloud pin Update default clever cloud streamkey Remove Clever conf --- readme.md | 20 ++++++++++++++++++++ settings_example.json | 1 + 2 files changed, 21 insertions(+) diff --git a/readme.md b/readme.md index 0a75db6..c09ef02 100644 --- a/readme.md +++ b/readme.md @@ -10,6 +10,7 @@ - [docker-compose](#docker-compose) - [Notes for Running Using docker-compose](#notes-for-running-using-docker-compose) - [FreeNAS / TrueNAS / FreeBSD build and run](#freenas-freebsd-build-and-run) + - [Clever-Cloud deployment and run](#clever-cloud-deployment-and-run) - [Usage](#usage) - [Configuration](#configuration) @@ -97,6 +98,25 @@ The container needs to be restarted to apply any changes you make to *settings.j A [FreeNAS & TrueNAS plugin](https://github.com/zorglube/iocage-plugin-movienight) had been released. You should find MovieNight into the plugin section of you management GUI. However you still can make an manual plugin deployment, documentation [here](https://github.com/freenas/iocage-ix-plugins) If you prefer to make an Jail without using the plugin management, a script wich setup an Jail and build and run MovieNight into that Jail as been written, you'll find it here [freenas-iocage-movienight](https://github.com/zorglube/freenas-iocage-movienight) +### Clever-Cloud deployment and run +If you don't like to handle the build and run of your MovieNight instance, here is an samll manual of "how to make it run on [Clever-Cloud](https://www.clever-cloud.com)". +Into your Clever-Cloud dashboard: + - Create a `Go` runtime instance + - Turn on the TCP redirection + - Add this configuration keys: + `CC_GO_BUILD_TOOL="gobuild"` Set The build method + `CC_GO_PKG="github.com/zorchenhimer/MovieNight"` Set the dependencies origin + `CC_PRE_RUN_HOOK="cp ${MN_BUID_CONFIG}"` + `CC_RUN_COMMAND="${MN_BIN_DIR}/${MN_BIN_NAME} -l ${MN_PORT} -r ${MN_RTMP} -s ${MN_STATIC} -k ${MN_STREAM_KEY}"` The run command + `MN_BIN_DIR="/home/bas/go_home/bin"` The built binary directory + `MN_BIN_NAME="MovieNight"` The name of the runnable bin + `MN_PORT=":8080"` The http port + `MN_RTMP=":4040"` The rtmp port + `MN_STATIC="${APP_HOME}/static"` The static contents dir + `MN_STREAM_KEY="YourStreamKey"` Your secret stream key + `MN_BUID_CONFIG="echo \"{\\\"ApprovedEmotes\\\": true, \\\"Bans\\\": [], \\\"LetThemLurk\\\": false, \\\"ListenAddress\\\": \\\":8080\\\", \\\"LogFile\\\": \\\"thelog.log\\\", \\\"LogLevel\\\": \\\"debug\\\", \\\"MaxMessageCount\\\": 300, \\\"NoCache\\\": false, \\\"NewPin\\\": true, \\\"PageTitle\\\": \\\"Movie Night\\\", \\\"RateLimitAuth\\\": 5, \\\"RateLimitChat\\\": 1, \\\"RateLimitColor\\\": 60, \\\"RateLimitDuplicate\\\": 30, \\\"RateLimitNick\\\": 300, \\\"RegenAdminPass\\\": true, \\\"RtmpListenAddress\\\": \\\":4040\\\", \\\"RoomAccess\\\": \\\"pin\\\", \\\"RoomAccessPin\\\": \\\"9445\\\", \\\"StreamKey\\\": \\\"ALongStreamKey\\\", \\\"StreamStats\\\": true, \\\"TitleLength\\\": 50, \\\"WrappedEmotesOnly\\\": true}\" >> ${MN_BIN_DIR}/settings.json"` The command that will build the `settings.json` + - Try run your MovieNight instance + ## Usage Now you can use OBS to push a stream to the server. Set the stream URL to diff --git a/settings_example.json b/settings_example.json index 7aa6e5e..f353a0f 100644 --- a/settings_example.json +++ b/settings_example.json @@ -19,3 +19,4 @@ "TitleLength": 50, "WrappedEmotesOnly": false } +