From efc3d5f426c05a0bd57103a8d315d9ad92d07c13 Mon Sep 17 00:00:00 2001 From: Deckard Date: Mon, 20 Oct 2025 18:26:56 -0400 Subject: [PATCH] Logging tweaks --- README.md | 17 +++++++++++++++++ compose.yml | 6 +++++- scripts/backup-scheduler.sh | 2 +- 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 895e135..2876bda 100644 --- a/README.md +++ b/README.md @@ -350,6 +350,23 @@ docker logs ac-authserver -f docker logs ac-modules --tail 50 ``` +### Web Tools Access + +Once deployed, access the management tools in your browser: + +```bash +# Database Management (phpMyAdmin) +http://YOUR_SERVER_IP:8081 + +# World Database Editor (Keira3) +http://YOUR_SERVER_IP:4201 + +# Replace YOUR_SERVER_IP with your actual server address +# Example: http://192.168.1.100:4201 +``` + +**Note**: Initial Keira3 startup may show database connection errors until the world database import completes. This is expected behavior. + ### Module Management ```bash # Reconfigure modules via interactive setup diff --git a/compose.yml b/compose.yml index 629e9a0..c18b84a 100644 --- a/compose.yml +++ b/compose.yml @@ -69,6 +69,10 @@ services: AC_CLOSE_IDLE_CONNECTIONS: "false" AC_UPDATES_ENABLE_DATABASES: "7" AC_UPDATES_AUTO_SETUP: "1" + AC_LOG_LEVEL: "1" + AC_LOGGER_ROOT_CONFIG: "1,Console" + AC_LOGGER_SERVER_CONFIG: "1,Console" + AC_APPENDER_CONSOLE_CONFIG: "1,2,0" CONTAINER_MYSQL: ${CONTAINER_MYSQL:-ac-mysql} MYSQL_PORT: ${MYSQL_PORT:-3306} MYSQL_USER: ${MYSQL_USER:-root} @@ -666,7 +670,7 @@ services: ports: - "${KEIRA3_EXTERNAL_PORT:-4201}:8080" healthcheck: - test: ["CMD", "sh", "-c", "curl -f http://localhost:8080/health || nc -z localhost 8080 || exit 1"] + test: ["CMD", "sh", "-c", "curl -f http://localhost:8080/health >/dev/null 2>&1 || nc -z localhost 8080 || exit 1"] interval: 30s timeout: 10s retries: 3 diff --git a/scripts/backup-scheduler.sh b/scripts/backup-scheduler.sh index eb44b62..2a8da91 100755 --- a/scripts/backup-scheduler.sh +++ b/scripts/backup-scheduler.sh @@ -19,7 +19,7 @@ database_list() { local dbs=("${DB_AUTH_NAME}" "${DB_WORLD_NAME}" "${DB_CHARACTERS_NAME}") if mysql -h"${MYSQL_HOST}" -P"${MYSQL_PORT}" -u"${MYSQL_USER}" -p"${MYSQL_PASSWORD}" -e "USE acore_playerbots;" >/dev/null 2>&1; then dbs+=("acore_playerbots") - log "Detected optional database: acore_playerbots (will be backed up)" + log "Detected optional database: acore_playerbots (will be backed up)" >&2 fi printf '%s\n' "${dbs[@]}" }