syncstorage-rs icon indicating copy to clipboard operation
syncstorage-rs copied to clipboard

Provide an optional path prefix preference setting for Tokenserver

Open data-sync-user opened this issue 11 months ago • 2 comments

Per this comment we should create an optional configuration parameter which allows self hosters to add a path prefix to tokenserver and syncstorage URIs.

┆Issue is synchronized with this Jira Task

data-sync-user avatar Jan 16 '25 17:01 data-sync-user

SyncServer-1.5 let you write the whole URL, like this:

public_url = https://home-server.example.com/prefix

The configuration option should let the user explicitly set the scheme, host, port and path prefix, not just the prefix.

Currently, syncstorage-rs guesses scheme, host and port and can only be configured explicitly by the reverse proxy passing host:port in X-Forwarded-Host and scheme in X-Forwarded-Proto

kyz avatar Mar 06 '25 18:03 kyz

@manuth has given an example implementation of a public_url configuration option here: https://github.com/mozilla-services/syncstorage-rs/issues/1217#issuecomment-2709133105

kyz avatar Mar 11 '25 10:03 kyz