Logging tweaks

This commit is contained in:
Deckard
2025-10-20 18:26:56 -04:00
parent 9c89a507a5
commit efc3d5f426
3 changed files with 23 additions and 2 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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[@]}"
}