Skip to content

v3.35.0

Choose a tag to compare

@ancsemi ancsemi released this 19 Jul 23:08

Two contributor fixes for self-hosters, both from KevonLin.

Steam and Spotify linking behind Docker, proxies and tunnels (#5443)

If you run Haven behind Docker port mapping, a reverse proxy that strips the port out of the Host header, or a Cloudflare Tunnel, the server could not reliably work out its own public-facing address. Steam and Spotify callback URLs came out wrong and linking would fail.

You can now set your public address once in .env:

PUBLIC_URL=https://haven.example.com:8443

Both link flows use exactly that value, with no guessing. Leave it unset and behaviour is identical to 3.34.0, so this changes nothing for existing setups.

Note that PUBLIC_URL is intentionally not editable from the admin panel. It has to be set in .env, because a callback address that could be changed from the web UI would be a way to hijack sign-in redirects.

Replace integration keys from Settings (#5442)

The key setup form only appeared while a provider was still unconfigured. Once your Steam, Spotify or Last.fm key was saved, there was no way to swap it out without editing .env by hand and restarting the server, which is a problem if a key leaks or gets revoked.

Configured integrations now show a Change key button (admins only) that opens the same form, with the wording adjusted to make clear it replaces the existing key. Saving a new Steam key also refreshes presence right away, so the new key takes effect immediately instead of looking broken until the next poll a minute later.

Upgrading

Drop-in replacement for 3.34.0. No database changes, no config changes required.

Full changelog: https://github.com/ancsemi/Haven/blob/main/CHANGELOG.md