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

NGINX Impl note #43

Open
jpstroop opened this issue Feb 26, 2016 · 8 comments
Open

NGINX Impl note #43

jpstroop opened this issue Feb 26, 2016 · 8 comments

Comments

@jpstroop
Copy link
Member

Based on @jronallo's config and this thread.

Expand/re-title the existing Apache note, or write a new one?

@azaroth42
Copy link
Member

Does @jpstroop or @jronallo want to write such a note? Otherwise close?

@glenrobson
Copy link
Member

Not a complete solution as I'm not sure how this would work with out a proxy but this works if there is a proxy involved:

# in  the http section:
map $http_accept $jsonmimetype {
      default   "application/json";
      "application/ld+json"  "application/ld+json";
}
...
location ~ \.json$ {
         proxy_pass http://example.com;
         proxy_hide_header 'Content-Type';
         add_header 'Access-Control-Allow-Origin' '*';
         add_header 'Content-Type' '$jsonmimetype';
}

@azaroth42
Copy link
Member

Almost 2 years without movement ... can someone take this on, otherwise I propose closing.

@azaroth42
Copy link
Member

Propose close.

@glenrobson
Copy link
Member

Looks a good resource to link to:

https://enable-cors.org/server_nginx.html

@azaroth42 azaroth42 transferred this issue from IIIF/api Jan 23, 2019
@mejackreed
Copy link

Related to IIIF/cookbook-recipes#114

@glenrobson
Copy link
Member

Also relates to the Apache guide: https://iiif.io/api/annex/notes/apache/

@glenrobson
Copy link
Member

We discussed this in the cookbook meeting on the 18th Feb 2022. We think this is a guide rather than a cookbook recipe.

@glenrobson glenrobson transferred this issue from IIIF/cookbook-recipes Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants