mirror of
https://github.com/MatthewL246/pretendo-docker.git
synced 2026-09-13 13:55:10 -05:00
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:
@@ -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: "
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user