Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loris configuration #543

Closed
busymo opened this issue Aug 27, 2021 · 4 comments
Closed

Loris configuration #543

busymo opened this issue Aug 27, 2021 · 4 comments

Comments

@busymo
Copy link

busymo commented Aug 27, 2021

I am trying to configure loris for my server (means loris is running as a proxy in Nginx), HTTP://127.0.0.1:8888 ---> https://philhist-papyri-01.philhist.unibas.ch/loris

[resolver]
impl = 'loris.resolver.SimpleHTTPResolver'
uri_resolvable=True
cache_root='/path/to/images'

Everything is fine so far but in the info.json of the images, I do not get the proper id. The @id that I get is:

"@id": "https, https://philhist-papyri-01.philhist.unibas.ch, philhist-papyri-01.philhist.unibas.ch/1%2Fimages%2F1.RectoIliad19th%28T%29book-IR-enh.jpg"

Does anybody have any idea why this is happening? Thanks in advance!!

@bcail
Copy link
Contributor

bcail commented Aug 27, 2021

Note #542. But, does setting proxy_path in your config help at all?

@busymo
Copy link
Author

busymo commented Aug 27, 2021

Yes, helps a bit. But still, the second part of the URI keeps the same. After setting the proxy path:

"@id": "https://philhist-papyri-01.philhist.unibas.ch/loris/1%2Fimages%2F1.RectoIliad19th%28T%29book-IR-enh.jpg"

I am looking to have it as:

"@id": "https://philhist-papyri-01.philhist.unibas.ch/loris/1/images/1.RectoIliad19th(T)book-IR-enh.jpg"

Note #542. But, does setting proxy_path in your config help at all?

@bcail
Copy link
Contributor

bcail commented Aug 27, 2021

looks like it's encoding the path - you might have to update the code to not encode it.

@busymo
Copy link
Author

busymo commented Aug 27, 2021

Yes, I guess it is just encoding some of the characters like in this case /, ( and ). I think I can check it out and arrive to a solution with it. Thanks for the help!!

@busymo busymo closed this as completed Aug 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants