dr-luigi

command module
v0.0.0-...-fbc7985 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2025 License: AGPL-3.0 Imports: 19 Imported by: 0

README

Dr. Luigi 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/dr-luigi
$ cd dr-luigi
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/dr-luigi

The server is now built to build/dr-luigi

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/dr-luigi

Configuration

All configuration options are handled via environment variables

.env files are supported

Name Description Required
PN_POSTGRES_URI Fully qualified URI to your Postgres server (Example postgres://username:password@localhost/mk7?sslmode=disable) Yes
PN_KERBEROS_PASSWORD Password used as part of the internal server data in Kerberos tickets No (Default password password will be used)
PN_AUTHENTICATION_SERVER_PORT Port for the authentication server Yes
PN_SECURE_SERVER_HOST Host name for the secure server (should point to the same address as the authentication server) Yes
PN_SECURE_SERVER_PORT Port for the secure server Yes
PN_ACCOUNT_GRPC_HOST Host name for your account server gRPC service Yes
PN_ACCOUNT_GRPC_PORT Port for your account server gRPC service Yes
PN_ACCOUNT_GRPC_API_KEY API key for your account server gRPC service No (Assumed to be an open gRPC API)
PN_ACCESS_KEY NEX Access Key Yes
PN_NEX_VERSION_MAJOR NEX Library Major version Yes
PN_NEX_VERSION_MINOR NEX Library Minor version Yes
PN_NEX_VERSION_PATCH NEX Library Patch version Yes

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
nex

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL