Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# すべてのファイルとディレクトリを無視
*
# ".pub" を含むファイルを 無視対象から除外
Expand All @@ -9,3 +10,5 @@
!/*

!.github/**

.env
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM ghcr.io/toro-server/toro-configs-enforcer:latest

WORKDIR /app

COPY /main /app/main
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
services:
main:
image: ghcr.io/toro-server/toro-configs-enforcer:latest
container_name: toro-configs-main
env_file:
- .env
volumes:
- ./main:/app/main
2 changes: 1 addition & 1 deletion main/plugins/AddPerm/config.pub.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
webhook-url: "[[ADDPERM:DISCORD_WEBHOOK]]"
webhook-url: "[[ADDPERM_DISCORD_WEBHOOK]]"
2 changes: 1 addition & 1 deletion main/plugins/BanPlayerSheet/config.pub.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
URL: "[[BANPLAYERSHEET:API_URL]]"
URL: "[[BANPLAYERSHEET_API_URL]]"

Message:
BanReason: "BAN 理由"
Expand Down
2 changes: 1 addition & 1 deletion main/plugins/BungeeGuard/config.pub.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# BungeeGuard Configuration

# Allowed authentication tokens.
allowed-tokens:
- "[[BUNGEEGUARD:ALLOWED_TOKENS]]"
- "[[BUNGEEGUARD_ALLOWED_TOKENS]]"


# Messages
Expand Down
6 changes: 3 additions & 3 deletions main/plugins/DiscordSRV/config.pub.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# DiscordSRV Configuration
# Need help? Join our Discord, https://discordsrv.com/discord

Expand All @@ -6,7 +6,7 @@

# Bot token; don't know what this is? Look at the video on the plugin page for instructions
# You must restart your server after changing this option
BotToken: "[[DISCORDSRV:BOT_TOKEN]]"
BotToken: "[[DISCORDSRV_BOT_TOKEN]]"

# Channel links from game to Discord
# syntax is Channels: {"in-game channel name from Minecraft": "numerical channel ID from Discord", "another in-game channel name from Minecraft": "another numerical channel ID from Discord"}
Expand All @@ -27,10 +27,10 @@
#
# The first part of channel pairs is not the Discord channel name!
# Run "/discord reload" after changing this option to apply
Channels: [[DISCORDSRV:CHANNELS]]
Channels: {"global": "[[DISCORDSRV_CHANNELS]]"}

# Console channel numerical ID (NOT NAME), leave blank to disable the console channel all together
DiscordConsoleChannelId: "[[DISCORDSRV:CONSOLE_CHANNEL_ID]]"
DiscordConsoleChannelId: "[[DISCORDSRV_CONSOLE_CHANNEL_ID]]"

# Invitation link shown to players when using /discord and on the message shown to unlinked players when linking is enforced
DiscordInviteLink: "https://discord.gg/changethisintheconfig.yml"
Expand Down
2 changes: 1 addition & 1 deletion main/plugins/Tps_log/config.pub.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
status:
Value:
VeryLow: 20
Expand All @@ -17,7 +17,7 @@
WarnTPS: 18

#Discord Webhook
WebhookURL: "[[TPSLOG:DISCORD_WEBHOOK]]"
WebhookURL: "[[TPSLOG_DISCORD_WEBHOOK]]"
#Discord Embed Color
EmbedColor: 12915218
Discord: true
Expand Down
9 changes: 0 additions & 9 deletions secrets.json

This file was deleted.

9 changes: 9 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
cd $(dirname $0)

git fetch origin main
git reset --hard origin/main

docker compose pull
docker compose up
docker compose down
Loading