Repository navigation
integration-proxy 0.2.1: configurable operator name, and show the proxy host on consent (#132) - #150
Merged
Merged
Conversation
The landing and consent pages hard-coded "LocalThought", which is wrong
for integrations.atomic.place and for anyone self-hosting the crate.
- New optional env vars: OPERATOR_NAME (default "this integration proxy",
in which case the pages name no one) and OPERATOR_URL (an absolute
http(s) URL without credentials, refused at startup otherwise), read
into Config.operator_name / Config.operator_url.
- The consent page shows the BASE_URL host (host[:port]) and who runs it
("Integration proxy <host>, run by <operator>"), in the title too, and
the button says "Use <operator> to sync <platform> ...".
- The landing page (static/index.html) is now a template with the
operator name, link and host; the LocalThought header, GitHub link,
tagline and logo alt text are gone. The logo image itself is unchanged.
- Every value is HTML-escaped, now including single quotes; placeholders
are filled in one pass so a value cannot inject another placeholder.
- Tests: rendering with and without an operator, escaping of the name,
URL and host, OPERATOR_URL validation, and a router-level test of / and
/connect.
- SELF_HOSTING.md and README.md document both variables; README tells
the localthought.io deployment how to keep its name.
- Crate version 0.2.1 (no CHANGELOG exists). Config gains two pub fields,
so code that builds Config with a struct literal must add them;
Config::from_env callers are unaffected.
Refs #132
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Sep 24, 2026
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.
Closes #132.
OPERATOR_NAME(default "this integration proxy") andOPERATOR_URL(absolute http(s) URL; anything else refuses to start).BASE_URLhost and its port when non-default. The host is also in the title, and the button reads "Use operator to sync …".', and placeholders are filled in a single pass.cargo fmt,clippy -D warnings,cargo test --include-ignored(Postgres 16) andcargo packagepass, and the Heroku wrapper builds.Configgains two public fields; callers ofConfig::from_env()are unaffected./logo.pngand the providerUser-Agent. SELF_HOSTING's Limits section says so.OPERATOR_NAME=LocalThoughtandOPERATOR_URL=https://localthought.io.🤖 Generated with Claude Code