Skip to content

uonexus-minimal v1.0.63

Choose a tag to compare

@rootmancer rootmancer released this 29 Oct 07:04

What changed

If you cloned this repo and the client said "Socket Error" after login, this is the fix.

The install was rejecting its own client

nginx.minimal.conf forwarded Host $host, which drops the port. The backend's two Origin
checks — the one that decides the WebSocket upgrade and the one that decides every state-changing
POST — build http://${host} from that header and compare it to the browser's Origin. On any port
but 80 that is http://localhost:8085 against http://localhost, so it failed:

[UOProxy] reject upgrade from origin="http://localhost:8085"

You saw "Socket Error", and nothing named the cause. PORT defaults to 8080 in
env.minimal.example, so the documented install was the affected one, and the note next to
PUBLIC_ORIGINS ("Leave empty for localhost") was not true until now — setting that variable was
the only way through.

Measured on a clean clone, with PUBLIC_ORIGINS left empty both times:

same-origin upgrade hostile Origin
before 403 403
after 101, and the world loads 403

The second column is the point: this stops the port being stripped, it does not widen what is
allowed. If you set PUBLIC_ORIGINS as a workaround you can now remove it — or leave it, it is
still honoured.

The build no longer depends on which SDK you happen to have

global.json was missing from the published tree, so dotnet used whatever was installed. It is
published now, pinning the SDK the README names, with prereleases refused.

Also

  • build.sh --client mini named a project this repository does not ship and failed inside MSBuild.
    It now says so, by name, before starting.
  • The PUBLIC_ORIGINS row in the README says host and port — they are compared together, which
    is the thing the old wording left out.

Verified the way it should have been from the start: a clean clone of this repository, built from
scratch and driven by hand to a character standing in the world.

Commits in this release

  • 64ad99b10 The public repo builds and plays: four fixes found by cloning it clean (#274)
  • ca7dacfec Gate the swap offer: never on a poisoned hero, owed to the next clean round (#273)
  • f38d4c2b9 Retire the dev environment, and make the release gate survive its absence (#272)

Run it without building

The attached zip is the whole thing: source, Docker files, and both clients already compiled
(ClassicUO and TazUO). You need Docker and your own UO game files — no .NET SDK, no Emscripten.

unzip uonexus-minimal-v1.0.63.zip && cd uonexus-minimal-v1.0.63
cp env.minimal.example .env                 # set UO_HOST, UO_PORT, SHARD_SLUG, JWT_SECRET
cp servers/minimal.yaml.example servers/myshard.yaml
mkdir -p gamefiles/myshard                  # copy your .mul / .uop set in here
docker compose -f docker-compose.minimal.yml up -d

Then open http://localhost:8080. Full setup, including the names that have to agree, is in the
README.

What this is

A real Ultima Online client — ClassicUO and TazUO compiled to WebAssembly — that plays in a
browser against your own shard. No portal, no accounts system of its own, no telemetry.

Two client bugs are open and reach every install; both are described in the README under
Known issues, with what to do if you hit them.