Repository navigation
Connect to ollebo.com with the map key and register maps - #12
Merged
Merged
Conversation
The Settings check called /api/v1 with the key, which ollebo.com never accepted, so it always showed Disconnected. It now calls dw's new /api/selfhosted API (Ollebo/dw branch mapserver-link) and shows which mapserver and Space the key belongs to. Finished maps are sent to that Space. Saving Settings or rescanning also sends the public URL and every map already built, which covers maps made before a key was set and updates tile URLs after the public URL changes. ollebo.com being down or the key being wrong never stops a map from being built locally. The API default drops the /v1 that dw never served. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AwkBcZCmo27zHnnRnAcKiy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The Settings check sent the key to
/api/v1, which ollebo.com never accepted, so it always showed Disconnected and maps never reached a Space.What changed
/api/selfhosted/selfand shows which mapserver and Space the key belongs to. A wrong key, a missing key and an unreachable ollebo.com each get their own message.https://www.ollebo.com/api, without the/v1that dw never served.Stacked on #11, so merge that first; GitHub then retargets this PR to
main.Depends on
mapserver-link: the/api/selfhostedAPI. Until that's deployed, this shows "Map key not accepted" and registers nothing.selfhosted-tiles-cors: without it, the dash lists registered maps but the browser blocks their tiles.Testing
I built this branch's image and ran it against dw's real
/api/selfhostedroutes and a Postgres with the new migration, all in Docker, with a fake key. All 17 checks passed:mapid, no duplicates)Still open
🤖 Generated with Claude Code
https://claude.ai/code/session_01AwkBcZCmo27zHnnRnAcKiy