Skip to content

Commit

Permalink
Clever Cloud deployement test
Browse files Browse the repository at this point in the history
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 4a774f7.

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
  • Loading branch information
zorglube committed Mar 1, 2023
1 parent adf00fb commit c80c1e9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions settings_example.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@
"TitleLength": 50,
"WrappedEmotesOnly": false
}

0 comments on commit c80c1e9

Please sign in to comment.