Set up the Wii U Chat server

There seems to be a problem with the compatability of the authentication and secure servers.
This commit is contained in:
Matthew Lopez
2023-12-20 22:19:40 -05:00
parent bd70c14a9e
commit 45f97d971e
8 changed files with 165 additions and 1 deletions

View File

@@ -52,14 +52,20 @@ friends_kerberos_password=$(generate_password 32)
echo "PN_FRIENDS_CONFIG_KERBEROS_PASSWORD=$friends_kerberos_password" >>./friends.local.env
friends_api_key=$(generate_password 32)
echo "PN_FRIENDS_CONFIG_GRPC_API_KEY=$friends_api_key" >>./friends.local.env
echo "PN_WIIU_CHAT_FRIENDS_GRPC_API_KEY=$friends_api_key" >>./wiiu-chat.local.env
friends_aes_key=$(generate_hex 64)
echo "PN_FRIENDS_CONFIG_AES_KEY=$friends_aes_key" >>./friends.local.env
# Generate a Kerberos password for the Wii U Chat server
chat_kerberos_password=$(generate_password 32)
echo "PN_WIIU_CHAT_KERBEROS_PASSWORD=$chat_kerberos_password" >>./wiiu-chat.local.env
# Get the computer IP address
printf "What is your computer's IP address? It must be accessible to your consoles: "
read -r computer_ip
echo "COMPUTER_IP=$computer_ip" >>./system.local.env
echo "PN_FRIENDS_SECURE_SERVER_HOST=$computer_ip" >>./friends.local.env
echo "PN_WIIU_CHAT_SECURE_SERVER_LOCATION=$computer_ip" >>./wiiu-chat.local.env
# Get the Wii U IP address
printf "Enter your Wii U's IP address: "

View File

@@ -1,10 +1,18 @@
#! /bin/sh
set -eu
null_aes_key=""
for _ in $(seq 1 64); do
null_aes_key="${null_aes_key}0"
done
git_base=$(git rev-parse --show-toplevel)
. "$git_base/environment/system.local.env"
. "$git_base/environment/friends.env"
. "$git_base/environment/friends.local.env"
. "$git_base/environment/wiiu-chat.env"
. "$git_base/environment/wiiu-chat.local.env"
docker compose up -d account
@@ -13,4 +21,7 @@ docker compose exec account node /app/dist/create-server-in-database.js reset
docker compose exec account node /app/dist/create-server-in-database.js nex \
"Friend List" "00003200" "0005001010001C00" "$COMPUTER_IP" \
"$PN_FRIENDS_AUTHENTICATION_SERVER_PORT" "prod" "$PN_FRIENDS_CONFIG_AES_KEY"
# Wii U Chat server doesn't seem to care about the AES key
docker compose exec account node /app/dist/create-server-in-database.js nex \
"Wii U Chat" "1005A000" "000500101005A100" "$COMPUTER_IP" \
"$PN_WIIU_CHAT_AUTHENTICATION_SERVER_PORT" "prod" "$null_aes_key"