Skip to content

Allow passing of custom URL #14

@mhpob

Description

@mhpob

I'd like to suggest being able to pass a custom URL to be used when constructing manifests. I'm toying with running tiny.iiif via a Cloudflare tunnel, wherein it proxies my local network's IP and server's port (after adjusting for #13). The manifest retains this information:

{
  "@context": "http://iiif.io/api/presentation/3/context.json",
  "id": "http://192.168.0.129:8880/manifests/mf9rt8linf.json",
  "type": "Manifest",
  "label": {
    "en": [
      "test"
    ]
  },
  "items": [
    {
      "id": "http://192.168.0.129:8880/manifests/mf9rt8linf/canvas/lrnix4o2k0",
      "type": "Canvas",

If the domain at the end of the tunnel "xyz.com" it'd be nice to let tiny.iiif know this somehow so that the manifests are adjusted and they can be accessed external to my network. For example:

{
  "@context": "http://iiif.io/api/presentation/3/context.json",
  "id": "https://xyz.com/manifests/mf9rt8linf.json",
  "type": "Manifest",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions