Skip to content

Terraria TModLoader Server Stack#1

Open
diginc wants to merge 2 commits intomainfrom
tmodloader
Open

Terraria TModLoader Server Stack#1
diginc wants to merge 2 commits intomainfrom
tmodloader

Conversation

@diginc
Copy link
Owner

@diginc diginc commented Oct 5, 2021

TModLoader, SFTP matching image user id (root), curl webhook poster to discord, and shell scripts to easily notify on server going online or offline.

diginc added 2 commits October 4, 2021 23:58
Signed-off-by: Adam Hill <adam@diginc.us>
Signed-off-by: Adam Hill <adam@diginc.us>
@@ -0,0 +1,7 @@
#!/bin/bash
set -ex
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should remove -x debug

@@ -0,0 +1,7 @@
#!/bin/bash
set -ex
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should remove -x debug

@@ -0,0 +1,12 @@
#!/usr/bin/env sh
set -ex
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should remove -x debug

- SFTP_USERS # .env but not used
- SFTP_PASS # .env used to setup root in enable-root-ssh
# --- Custom notification scripts to let discord friends know when servers up or down
discord-notify:
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

disable auto-starting and sending 'test message' or modify script to just not send anything if MSG is null as a workaround to avoid using bleeding edge profile/docker-compose 2 beta features: https://stackoverflow.com/a/65957695/895792


env

echo '{
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test if MSG is null and don't try to send to make container noop by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant