WiiU Chat secure server
Go to file
William Oldham a15e473fbf
Some checks failed
Build and Publish Docker Image / build-publish (push) Has been cancelled
fix: remove brackets around update
2025-02-22 19:15:42 +00:00
.github/workflows Add Dockerfile & CI 2024-07-27 12:47:40 +02:00
database fix: remove brackets around update 2025-02-22 19:15:42 +00:00
globals Add friends server gRPC 2025-02-21 09:53:12 -08:00
grpc Update to latest library versions 2025-02-21 09:56:13 -08:00
nex Change NEX version to match used structure versions instead of what is in the RPX 2025-02-21 09:58:04 -08:00
.gitignore Delete unneccessary item, update gitignore to omit macOS Finder config nonsense 2025-02-21 09:59:16 -08:00
Dockerfile Updated docker go version 2025-02-21 13:21:43 -08:00
go.mod Update to latest library versions 2025-02-21 09:56:13 -08:00
go.sum Update to latest library versions 2025-02-21 09:56:13 -08:00
init.go Add friends server gRPC 2025-02-21 09:53:12 -08:00
LICENSE Create LICENSE 2022-08-13 20:34:46 -04:00
main.go updated nex version 2025-02-19 15:45:47 -08:00
Makefile updated nex version 2025-02-19 15:45:47 -08:00
README.md Add README.md 2025-02-21 09:58:16 -08:00

Wii U Chat replacement server

Includes both the authentication and secure servers

Compiling

Setup

Install Go and git, then clone and enter the repository

$ git clone https://github.com/PretendoNetwork/wiiu-chat
$ cd wiiu-chat

Compiling using go

To compile using Go, go get the required modules and then go build to your desired location. You may also want to tidy the go modules, though this is optional

$ go get -u
$ go mod tidy
$ go build -o build/wiiu-chat

The server is now built to build/wiiu-chat

When compiling with only Go, the authentication servers build string is not automatically set. This should not cause any issues with gameplay, but it means that the server build will not be visible in any packet dumps or logs a title may produce

To compile the servers with the authentication server build string, add -ldflags "-X 'main.serverBuildString=BUILD_STRING_HERE'" to the build command, or use make to compile the server

Compiling using make

Compiling using make will read the local .git directory to create a dynamic authentication server build string, based on your repositories remote origin and current commit

Install make either through your systems package manager or the official download. We provide a default rule which compiles using go

To build using go

$ make

The server is now built to build/wiiu-chat

Configuration

All configuration options are handled via environment variables

.env files are supported

Name Description Required
PN_WUC_POSTGRES_URI Fully qualified URI to your Postgres server (Example postgres://username:password@localhost/wiiuchat?sslmode=disable) Yes
PN_WUC_AUTHENTICATION_SERVER_PORT Port for the authentication server Yes
PN_WUC_SECURE_SERVER_HOST Host name for the secure server (should point to the same address as the authentication server) Yes
PN_WUC_SECURE_SERVER_PORT Port for the secure server Yes
PN_WUC_ACCOUNT_GRPC_HOST Host name for your account server gRPC service Yes
PN_WUC_ACCOUNT_GRPC_PORT Port for your account server gRPC service Yes
PN_WUC_ACCOUNT_GRPC_API_KEY API key for your account server gRPC service No (Assumed to be an open gRPC API)
PN_WUC_FRIENDS_GRPC_HOST Host name for your friends server gRPC service Yes
PN_WUC_FRIENDS_GRPC_PORT Port for your friends server gRPC service Yes
PN_WUC_FRIENDS_GRPC_API_KEY API key for your friends server gRPC service No (Assumed to be an open gRPC API)